|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemaSG
Interface of a source generator for the whole schema.
Specifies the source representing a complete schema.
The actual generation of the concrete source files
is delegated to the JavaSourceFactory
available by calling getJavaSourceFactory()
.
Various portions of the source artifacts are made
available through property accessors.
Method Summary | |
---|---|
void |
generate()
Performs the source generation. |
void |
generateJaxbProperties()
Creates the "jaxb.properties" file. |
java.lang.String |
getCollectionType()
Returns the schemas collection type, as specified by the JAXB globalBindings tag. |
org.w3c.dom.Document |
getConfigFile(java.lang.String pPackageName,
java.util.List pContextList)
Generates the "Configuration.xml" file as a DOM node. |
ObjectSG |
getElement(XsQName pName)
Returns the schemas global element with the given name or null, if no such element exists. |
ObjectSG[] |
getElements()
Returns the schemas global elements. |
GroupSG |
getGroup(XsQName pName)
Returns the schemas global group with the given name or null, if no such type exists. |
GroupSG[] |
getGroups()
Returns the schemas model groups. |
JavaSourceFactory |
getJavaSourceFactory()
Returns the schemas JavaSourceFactory . |
JAXBJavaType[] |
getJAXBJavaTypes()
Returns the globally configured instances of JAXBJavaType . |
ObjectSG[] |
getObjects()
Returns the schemas global attributes and elements. |
TypeSG |
getType(XsQName pName)
Returns the schemas global type with the given name or null, if no such type exists. |
TypeSG[] |
getTypes()
Returns the schemas global types. |
XsQName[] |
getTypesafeEnumBase()
Returns the globally configured value for typesafeenumbase . |
boolean |
isBindingStyleModelGroup()
Returns whether the schema prefers model group binding style or not. |
boolean |
isChoiceContentProperty()
Returns whether the value "choiceContentProperty" is enabled. |
boolean |
isFailFastCheckEnabled()
Returns whether the property "enableFailFastCheck" is enabled. |
boolean |
isFixedAttributeConstantProperty()
Returns whether the property "isFixedAttributeConstantProperty" is enabled. |
boolean |
isGeneratingIsSetMethod()
Returns whether the property "generateIsSetMethod" is enabled. |
boolean |
isJavaNamingConventionsEnabled()
Returns whether the property "enableJavaConventions" is enabled. |
boolean |
isUnderscoreWordSeparator()
Returns whether the property "underscoreBinding" has the value "asWordSeparator". |
Methods inherited from interface org.apache.ws.jaxme.generator.sg.SGItem |
---|
getFactory, getLocator, getSchema, init |
Method Detail |
---|
TypeSG[] getTypes() throws org.xml.sax.SAXException
Returns the schemas global types.
org.xml.sax.SAXException
TypeSG getType(XsQName pName) throws org.xml.sax.SAXException
Returns the schemas global type with the given name or null, if no such type exists.
org.xml.sax.SAXException
GroupSG[] getGroups() throws org.xml.sax.SAXException
Returns the schemas model groups.
org.xml.sax.SAXException
GroupSG getGroup(XsQName pName) throws org.xml.sax.SAXException
Returns the schemas global group with the given name or null, if no such type exists.
org.xml.sax.SAXException
ObjectSG[] getObjects() throws org.xml.sax.SAXException
Returns the schemas global attributes and elements.
org.xml.sax.SAXException
ObjectSG getElement(XsQName pName) throws org.xml.sax.SAXException
Returns the schemas global element with the given name or null, if no such element exists.
org.xml.sax.SAXException
ObjectSG[] getElements() throws org.xml.sax.SAXException
Returns the schemas global elements.
org.xml.sax.SAXException
java.lang.String getCollectionType()
Returns the schemas collection type, as specified by the JAXB globalBindings tag.
JavaSourceFactory getJavaSourceFactory()
Returns the schemas JavaSourceFactory
.
void generate() throws org.xml.sax.SAXException
Performs the source generation.
org.xml.sax.SAXException
boolean isBindingStyleModelGroup()
Returns whether the schema prefers model group binding style or not. Defaults to false.
boolean isChoiceContentProperty()
Returns whether the value "choiceContentProperty" is enabled. Defaults to false.
boolean isFailFastCheckEnabled()
Returns whether the property "enableFailFastCheck" is enabled. Defaults to false.
boolean isJavaNamingConventionsEnabled()
Returns whether the property "enableJavaConventions" is enabled. Defaults to true.
boolean isFixedAttributeConstantProperty()
Returns whether the property "isFixedAttributeConstantProperty" is enabled. Defaults to false.
boolean isGeneratingIsSetMethod()
Returns whether the property "generateIsSetMethod" is enabled. Defaults to false.
boolean isUnderscoreWordSeparator()
Returns whether the property "underscoreBinding" has the value "asWordSeparator". Defaults to true.
JAXBJavaType[] getJAXBJavaTypes()
Returns the globally configured instances of JAXBJavaType
.
XsQName[] getTypesafeEnumBase()
Returns the globally configured value for typesafeenumbase
.
org.w3c.dom.Document getConfigFile(java.lang.String pPackageName, java.util.List pContextList) throws org.xml.sax.SAXException
Generates the "Configuration.xml" file as a DOM node. Event handlers may modify the DOM node.
pPackageName
- The package, for which a configuration is being generated.pContextList
- A list of objects generated in the package.
org.xml.sax.SAXException
void generateJaxbProperties() throws org.xml.sax.SAXException
Creates the "jaxb.properties" file.
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |