|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.util.NOXMLFactory
this class is responsible for devaki-nextobjects XML input this is for load .cdm, .pdm, project.xml, ${project-schema}.xml
http://maven.apache.org/reference/project-descriptor.html
Field Summary | |
static int |
DOCTYPE_CDM
the Conceptual Model doctype |
static int |
DOCTYPE_MAVEN
Project.xml doctype |
static int |
DOCTYPE_PDM
the Physical Model doctype |
static int |
DOCTYPE_TORQUE
The Torque doctype |
static int |
DOCTYPE_UNKNOW
Unknow doctype |
Method Summary | |
protected static BaseClass |
loadBaseClass(org.w3c.dom.Element child,
BaseClass pBaseClass)
Convert a JDom Elment into an Entity |
protected static void |
loadBaseModel(org.w3c.dom.Element root,
BaseModel pBaseModel)
Convert a JDom Elment into an BaseModel |
static void |
loadCdm(org.w3c.dom.Document doc,
ConceptualModel pMerise)
Convert a XML stream into an ConceptualModel |
protected static void |
loadClassStyle(org.w3c.dom.Element child,
BaseClass pBaseClass)
Loads the style of a class |
protected static Column |
loadColumn(org.w3c.dom.Element pChild,
BaseClass pBaseClass)
Convert a JDom Elment into a FK |
protected static Constraint |
loadForeignKey(org.w3c.dom.Element pEltForeignKey,
Table pTable)
Convert a JDom Elment into a FK |
static org.w3c.dom.Document |
loadModel(java.io.File file)
Load a model from a file |
static void |
loadPdm(org.w3c.dom.Document doc,
PhysicalModel pPDM)
Load a PDM from an XML stream |
protected static void |
loadProjectDotXml(java.io.File file,
BaseModel pBaseModel)
load a project.xml tree for a given model |
static int |
parseDocType(org.w3c.dom.Document doc)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DOCTYPE_CDM
public static final int DOCTYPE_PDM
public static final int DOCTYPE_TORQUE
public static final int DOCTYPE_MAVEN
public static final int DOCTYPE_UNKNOW
Method Detail |
public static void loadCdm(org.w3c.dom.Document doc, ConceptualModel pMerise)
doc
- the documentpMerise
- the conceptual modelpublic static void loadPdm(org.w3c.dom.Document doc, PhysicalModel pPDM)
doc
- the documentpPDM
- the physical modelpublic static org.w3c.dom.Document loadModel(java.io.File file)
file
- the file
java.io.IOException
JDOMException
public static int parseDocType(org.w3c.dom.Document doc)
doc
- Description of the Parameter
protected static Constraint loadForeignKey(org.w3c.dom.Element pEltForeignKey, Table pTable)
pEltForeignKey
- the tree nodepTable
- the table
protected static void loadBaseModel(org.w3c.dom.Element root, BaseModel pBaseModel)
root
- the tree element to parsepBaseModel
- the model to be loaded.protected static void loadProjectDotXml(java.io.File file, BaseModel pBaseModel)
file
- the filepBaseModel
- the modelprotected static BaseClass loadBaseClass(org.w3c.dom.Element child, BaseClass pBaseClass)
child
- the tree node to parsepBaseClass
- the entity to load.
protected static void loadClassStyle(org.w3c.dom.Element child, BaseClass pBaseClass)
child
- the tree node to parsepBaseClass
- the class to load.protected static Column loadColumn(org.w3c.dom.Element pChild, BaseClass pBaseClass)
pChild
- the tree node to parsepBaseClass
- the entity to load.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |