|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.generator.sg.impl.SchemaSGImpl
| Constructor Summary | |
SchemaSGImpl(SchemaSGChain o)
|
|
| 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. |
SGFactory |
getFactory()
Returns the factory that created this item. |
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. |
SchemaSGChain |
getHeadOfChain()
|
JavaSourceFactory |
getJavaSourceFactory()
Returns the schemas JavaSourceFactory. |
JAXBJavaType[] |
getJAXBJavaTypes()
Returns the globally configured instances of JAXBJavaType. |
org.xml.sax.Locator |
getLocator()
Returns the items location in the schema; useful for error messages. |
ObjectSG[] |
getObjects()
Returns the schemas global attributes and elements. |
SchemaSG |
getSchema()
Returns the items schema. |
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. |
void |
init()
Initializes the item. |
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaSGImpl(SchemaSGChain o)
| Method Detail |
public TypeSG[] getTypes()
throws org.xml.sax.SAXException
SchemaSGReturns the schemas global types.
getTypes in interface SchemaSGorg.xml.sax.SAXException
public TypeSG getType(XsQName pName)
throws org.xml.sax.SAXException
SchemaSGReturns the schemas global type with the given name or null, if no such type exists.
getType in interface SchemaSGorg.xml.sax.SAXException
public GroupSG[] getGroups()
throws org.xml.sax.SAXException
SchemaSGReturns the schemas model groups.
getGroups in interface SchemaSGorg.xml.sax.SAXException
public GroupSG getGroup(XsQName pName)
throws org.xml.sax.SAXException
SchemaSGReturns the schemas global group with the given name or null, if no such type exists.
getGroup in interface SchemaSGorg.xml.sax.SAXException
public ObjectSG[] getObjects()
throws org.xml.sax.SAXException
SchemaSGReturns the schemas global attributes and elements.
getObjects in interface SchemaSGorg.xml.sax.SAXException
public ObjectSG getElement(XsQName pName)
throws org.xml.sax.SAXException
SchemaSGReturns the schemas global element with the given name or null, if no such element exists.
getElement in interface SchemaSGorg.xml.sax.SAXException
public ObjectSG[] getElements()
throws org.xml.sax.SAXException
SchemaSGReturns the schemas global elements.
getElements in interface SchemaSGorg.xml.sax.SAXExceptionpublic java.lang.String getCollectionType()
SchemaSGReturns the schemas collection type, as specified by the JAXB globalBindings tag.
getCollectionType in interface SchemaSGpublic JavaSourceFactory getJavaSourceFactory()
SchemaSGReturns the schemas JavaSourceFactory.
getJavaSourceFactory in interface SchemaSG
public void generate()
throws org.xml.sax.SAXException
SchemaSGPerforms the source generation.
generate in interface SchemaSGorg.xml.sax.SAXExceptionpublic boolean isBindingStyleModelGroup()
SchemaSGReturns whether the schema prefers model group binding style or not. Defaults to false.
isBindingStyleModelGroup in interface SchemaSGpublic boolean isChoiceContentProperty()
SchemaSGReturns whether the value "choiceContentProperty" is enabled. Defaults to false.
isChoiceContentProperty in interface SchemaSGpublic boolean isFailFastCheckEnabled()
SchemaSGReturns whether the property "enableFailFastCheck" is enabled. Defaults to false.
isFailFastCheckEnabled in interface SchemaSGpublic boolean isJavaNamingConventionsEnabled()
SchemaSGReturns whether the property "enableJavaConventions" is enabled. Defaults to true.
isJavaNamingConventionsEnabled in interface SchemaSGpublic boolean isFixedAttributeConstantProperty()
SchemaSGReturns whether the property "isFixedAttributeConstantProperty" is enabled. Defaults to false.
isFixedAttributeConstantProperty in interface SchemaSGpublic boolean isGeneratingIsSetMethod()
SchemaSGReturns whether the property "generateIsSetMethod" is enabled. Defaults to false.
isGeneratingIsSetMethod in interface SchemaSGpublic boolean isUnderscoreWordSeparator()
SchemaSGReturns whether the property "underscoreBinding" has the value "asWordSeparator". Defaults to true.
isUnderscoreWordSeparator in interface SchemaSGpublic JAXBJavaType[] getJAXBJavaTypes()
SchemaSGReturns the globally configured instances of JAXBJavaType.
getJAXBJavaTypes in interface SchemaSGpublic XsQName[] getTypesafeEnumBase()
SchemaSGReturns the globally configured value for typesafeenumbase.
getTypesafeEnumBase in interface SchemaSG
public org.w3c.dom.Document getConfigFile(java.lang.String pPackageName,
java.util.List pContextList)
throws org.xml.sax.SAXException
SchemaSGGenerates the "Configuration.xml" file as a DOM node. Event handlers may modify the DOM node.
getConfigFile in interface SchemaSGpPackageName - The package, for which a configuration is being generated.pContextList - A list of objects generated in the package.
org.xml.sax.SAXException
public void generateJaxbProperties()
throws org.xml.sax.SAXException
SchemaSGCreates the "jaxb.properties" file.
generateJaxbProperties in interface SchemaSGorg.xml.sax.SAXExceptionpublic SGFactory getFactory()
SGItemReturns the factory that created this item.
getFactory in interface SGItempublic SchemaSG getSchema()
SGItemReturns the items schema.
getSchema in interface SGItempublic org.xml.sax.Locator getLocator()
SGItemReturns the items location in the schema; useful for error messages.
getLocator in interface SGItem
public void init()
throws org.xml.sax.SAXException
SGItemInitializes the item.
init in interface SGItemorg.xml.sax.SAXExceptionpublic SchemaSGChain getHeadOfChain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||