org.eclipse.emf.codegen.ecore.rose2ecore
Class RoseUtil

java.lang.Object
  extended byorg.eclipse.emf.codegen.ecore.rose2ecore.RoseUtil

public class RoseUtil
extends Object

Provide functions to process a rose file.


Constructor Summary
RoseUtil()
           
 
Method Summary
 void checkConflictFileName(UnitTreeNode unitTree)
           
 boolean checkFileName(UnitTreeNode unitTree, String name)
           
 void createExtent(UnitTreeNode unitTree)
           
 void createExtent4RoseUnitTree(UnitTreeNode unitTree)
           
 void createResource(UnitTreeNode tree, ResourceSet resourceSet)
           
 UnitTreeNode createRoseUnitTreeAndTable(String fileNameNodeValue, UnitTreeNode topNode)
           
 Map getEPackageToInformationMap()
           
 Map getPackageNameToNSNameMap()
           
 Map getPackageNameToNSURIMap()
           
 MultiStatus getStatus()
           
 Map getVariableToDirectoryMap()
           
protected  void loadTree(RoseNode containingNode, UnitTreeNode node)
           
 void processUnitTree(UnitTreeNode unitTree)
           
 String resolveFileName(String name)
           
 void saveEcoreFiles(ResourceSet resourceSet)
           
protected  void setIDs(UnitTreeNode node)
           
 void showRoseUnitTree(UnitTreeNode unitTree)
           
protected  void traverseOut(UnitTreeNode tree, int index)
           
protected  void validate(UnitTreeNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoseUtil

public RoseUtil()
Method Detail

createRoseUnitTreeAndTable

public UnitTreeNode createRoseUnitTreeAndTable(String fileNameNodeValue,
                                               UnitTreeNode topNode)
                                        throws Exception
Throws:
Exception

showRoseUnitTree

public void showRoseUnitTree(UnitTreeNode unitTree)

traverseOut

protected void traverseOut(UnitTreeNode tree,
                           int index)

createExtent4RoseUnitTree

public void createExtent4RoseUnitTree(UnitTreeNode unitTree)

checkConflictFileName

public void checkConflictFileName(UnitTreeNode unitTree)

checkFileName

public boolean checkFileName(UnitTreeNode unitTree,
                             String name)

createExtent

public void createExtent(UnitTreeNode unitTree)

processUnitTree

public void processUnitTree(UnitTreeNode unitTree)
                     throws Exception
Throws:
Exception

setIDs

protected void setIDs(UnitTreeNode node)
               throws Exception
Throws:
Exception

validate

protected void validate(UnitTreeNode node)
                 throws Exception
Throws:
Exception

loadTree

protected void loadTree(RoseNode containingNode,
                        UnitTreeNode node)
                 throws Exception
Throws:
Exception

saveEcoreFiles

public void saveEcoreFiles(ResourceSet resourceSet)
                    throws Exception
Throws:
Exception

createResource

public void createResource(UnitTreeNode tree,
                           ResourceSet resourceSet)

resolveFileName

public String resolveFileName(String name)

getVariableToDirectoryMap

public Map getVariableToDirectoryMap()

getPackageNameToNSNameMap

public Map getPackageNameToNSNameMap()

getPackageNameToNSURIMap

public Map getPackageNameToNSURIMap()

getEPackageToInformationMap

public Map getEPackageToInformationMap()

getStatus

public MultiStatus getStatus()

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.