|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pnp.xfeature.documenttree.ProjectXMLTree
public class ProjectXMLTree
This class represents an XML tree of the XFeature project file. It is the data structure behind the project editor. The tree can be updated either by the form page of the project editor or by the XML page of the project editor.
| Constructor Summary | |
|---|---|
ProjectXMLTree(ProjectFormPage projectFormPage)
The constructor stores the form page. |
|
| Method Summary | |
|---|---|
void |
addAppDisplayModelGen(java.lang.String path)
adds new XSL file to the list of application model generators |
void |
addAppGlobalConstraintsGen(java.lang.String path)
adds new XSL file to the list of application model generators |
void |
addAppMetaModelGen(java.lang.String path)
adds new XSL file to the list of application model generators |
java.lang.String[] |
getAppDisplayModelGen()
Returns all files that constitute appliction display model generator. |
java.lang.String[] |
getAppGlobalConstraintsGen()
Returns all files that constitute appliction global constraints generator. |
java.lang.String[] |
getAppMetaModelGen()
Returns all files that constitute appliction meta-model generator. |
org.jdom.Document |
getDoc()
Returns the document. |
java.lang.String |
getFamilyDisplayModel()
reads the location of the family display model from the XML file |
java.lang.String |
getFamilyMetaModel()
reads the location of the family meta model from the XML file |
java.util.List<java.lang.String> |
getPathsWithSpaces()
|
void |
removeAppDmGenFile(java.lang.String filename)
Removes an application display model generator file. |
void |
removeAppGcGenFile(java.lang.String filename)
Removes an application global constraints generator file. |
void |
removeAppMmGenFile(java.lang.String filename)
Removes an application meta model generator file. |
void |
resetDoc()
Sets the document to null. |
void |
setProjectFormPage(ProjectFormPage projectFormPage)
setter method |
void |
updateConfigurationFromTextEditor(java.io.StringReader reader)
Gets the information from the XML page of the project editor and puts it in the XML tree. |
void |
updateTextEditorFromConfiguration()
Gets the base folder information from the form page of the project editor and puts it in the XML tree. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectXMLTree(ProjectFormPage projectFormPage)
| Method Detail |
|---|
public org.jdom.Document getDoc()
public void resetDoc()
public void updateConfigurationFromTextEditor(java.io.StringReader reader)
reader - the String representation of the project editor XML pagepublic void updateTextEditorFromConfiguration()
public void setProjectFormPage(ProjectFormPage projectFormPage)
public java.lang.String getFamilyMetaModel()
public java.lang.String getFamilyDisplayModel()
public java.lang.String[] getAppMetaModelGen()
public java.lang.String[] getAppDisplayModelGen()
public java.lang.String[] getAppGlobalConstraintsGen()
public void removeAppMmGenFile(java.lang.String filename)
filename - name of the file to be femovedpublic void removeAppGcGenFile(java.lang.String filename)
filename - name of the file to be femovedpublic void removeAppDmGenFile(java.lang.String filename)
filename - name of the file to be femovedpublic void addAppMetaModelGen(java.lang.String path)
path - location to the XSL filepublic void addAppDisplayModelGen(java.lang.String path)
path - location to the XSL filepublic void addAppGlobalConstraintsGen(java.lang.String path)
path - location to the XSL filepublic java.util.List<java.lang.String> getPathsWithSpaces()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||