|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebm_ws.infra.xmlmapping.impl.SchemaImpl
public class SchemaImpl
This class is a program (main) that allows generating the XML schema (XSD) from Java code that support the implicit mapping (see XmlObject.java)
| Constructor Summary | |
|---|---|
SchemaImpl(SchemasManager iMgr,
java.lang.String iName,
java.lang.String iLocator,
java.lang.String iPackage)
Schema constructor. |
|
| Method Summary | |
|---|---|
void |
buildFromClassPath()
Builds the schema (i.e. looks for all elements) by searching the classpath for classes. |
void |
buildFromClassPathOFF()
Ancienne méthode se basant sur le CLASSPATH. |
void |
buildFromSource(java.lang.String iSourceDir)
Parses recursively all classes in the given source directory |
void |
buildFromXsd(org.w3c.dom.Document iDoc)
Builds the schema (i.e. looks for all elements) by parsing the XSD file. |
void |
buildFromXsd(java.io.InputStream iInput)
Builds the schema (i.e. looks for all elements) by parsing the XSD file. |
void |
generateXSD(org.w3c.dom.Document iXmlDoc)
Generates the XSD structure for this schema. |
ISchemaElement[] |
getAllElements()
Returns all elements belonging to this schema. |
ISchemaElement |
getElement(java.lang.Class iClass)
|
java.lang.String |
getLocator()
Returns the schema location (this is the xsd file). |
java.lang.String |
getName()
Returns the schema name. |
java.lang.String |
getRootPackage()
Returns the schema root code package |
ISchema[] |
getUsedSchemas()
Returns a list of schemas referenced by this schema. |
boolean |
isFullyBuilt()
Determines whether this schema has been loaded. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaImpl(SchemasManager iMgr,
java.lang.String iName,
java.lang.String iLocator,
java.lang.String iPackage)
iName - The schema name (generally used as the filename and the prefix).iPackage - The root code package| Method Detail |
|---|
public java.lang.String getName()
getName in interface ISchemapublic java.lang.String getLocator()
ISchema
getLocator in interface ISchemapublic java.lang.String getRootPackage()
getRootPackage in interface ISchemapublic boolean isFullyBuilt()
ISchema
isFullyBuilt in interface ISchemapublic java.lang.String toString()
toString in class java.lang.Objectpublic ISchemaElement getElement(java.lang.Class iClass)
getElement in interface ISchemaiSourceRootDir -
public ISchema[] getUsedSchemas()
ISchema
getUsedSchemas in interface ISchemapublic ISchemaElement[] getAllElements()
ISchema
getAllElements in interface ISchemapublic void buildFromClassPath()
ISchema
buildFromClassPath in interface ISchemapublic void buildFromClassPathOFF()
public void buildFromSource(java.lang.String iSourceDir)
throws java.lang.Exception
buildFromSource in interface ISchemaiSourceRootDir -
java.lang.Exceptionpublic void generateXSD(org.w3c.dom.Document iXmlDoc)
ISchema
generateXSD in interface ISchema
public void buildFromXsd(java.io.InputStream iInput)
throws java.lang.Exception
ISchema
buildFromXsd in interface ISchemajava.lang.Exceptionpublic void buildFromXsd(org.w3c.dom.Document iDoc)
ISchema
buildFromXsd in interface ISchema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||