| Type | Property and Description |
|---|---|
boolean |
isChoiceContent
Returns whether the value "choiceContentProperty" is enabled.
|
boolean |
isFixedAttributeConstant
Returns whether the property "isFixedAttributeConstantProperty" is
enabled.
|
| Constructor and Description |
|---|
SchemaSGImpl(SchemaSGChain o) |
| Modifier and Type | Method and Description |
|---|---|
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".
|
isChoiceContentProperty in interface SchemaSGisFixedAttributeConstantProperty in interface SchemaSGpublic SchemaSGImpl(SchemaSGChain o)
public TypeSG[] getTypes() throws org.xml.sax.SAXException
SchemaSGReturns the schemas global types.
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.
public GroupSG[] getGroups() throws org.xml.sax.SAXException
SchemaSGReturns the schemas model groups.
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.
public ObjectSG[] getObjects() throws org.xml.sax.SAXException
SchemaSGReturns the schemas global attributes and elements.
getObjects in interface SchemaSGorg.xml.sax.SAXExceptionpublic 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.SAXExceptionpublic 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 SchemaSGpublic void generate()
throws org.xml.sax.SAXException
SchemaSGPerforms the source generation.
public 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 SchemaSGpublic 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.SAXExceptionpublic 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.
public org.xml.sax.Locator getLocator()
SGItemReturns the items location in the schema; useful for error messages.
getLocator in interface SGItempublic void init()
throws org.xml.sax.SAXException
SGItemInitializes the item.
public SchemaSGChain getHeadOfChain()