org.eclipse.emf.codegen.ecore.rose2ecore
Class RoseUtil
java.lang.Object
org.eclipse.emf.codegen.ecore.rose2ecore.RoseUtil
- public class RoseUtil
- extends Object
Provide functions to process a rose file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoseUtil
public RoseUtil()
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()