|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.generator.sg.impl.SchemaSGImpl
public class 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
SchemaSG
Returns the schemas global types.
getTypes
in interface SchemaSG
org.xml.sax.SAXException
public TypeSG getType(XsQName pName) throws org.xml.sax.SAXException
SchemaSG
Returns the schemas global type with the given name or null, if no such type exists.
getType
in interface SchemaSG
org.xml.sax.SAXException
public GroupSG[] getGroups() throws org.xml.sax.SAXException
SchemaSG
Returns the schemas model groups.
getGroups
in interface SchemaSG
org.xml.sax.SAXException
public GroupSG getGroup(XsQName pName) throws org.xml.sax.SAXException
SchemaSG
Returns the schemas global group with the given name or null, if no such type exists.
getGroup
in interface SchemaSG
org.xml.sax.SAXException
public ObjectSG[] getObjects() throws org.xml.sax.SAXException
SchemaSG
Returns the schemas global attributes and elements.
getObjects
in interface SchemaSG
org.xml.sax.SAXException
public ObjectSG getElement(XsQName pName) throws org.xml.sax.SAXException
SchemaSG
Returns the schemas global element with the given name or null, if no such element exists.
getElement
in interface SchemaSG
org.xml.sax.SAXException
public ObjectSG[] getElements() throws org.xml.sax.SAXException
SchemaSG
Returns the schemas global elements.
getElements
in interface SchemaSG
org.xml.sax.SAXException
public java.lang.String getCollectionType()
SchemaSG
Returns the schemas collection type, as specified by the JAXB globalBindings tag.
getCollectionType
in interface SchemaSG
public JavaSourceFactory getJavaSourceFactory()
SchemaSG
Returns the schemas JavaSourceFactory
.
getJavaSourceFactory
in interface SchemaSG
public void generate() throws org.xml.sax.SAXException
SchemaSG
Performs the source generation.
generate
in interface SchemaSG
org.xml.sax.SAXException
public boolean isBindingStyleModelGroup()
SchemaSG
Returns whether the schema prefers model group binding style or not. Defaults to false.
isBindingStyleModelGroup
in interface SchemaSG
public boolean isChoiceContentProperty()
SchemaSG
Returns whether the value "choiceContentProperty" is enabled. Defaults to false.
isChoiceContentProperty
in interface SchemaSG
public boolean isFailFastCheckEnabled()
SchemaSG
Returns whether the property "enableFailFastCheck" is enabled. Defaults to false.
isFailFastCheckEnabled
in interface SchemaSG
public boolean isJavaNamingConventionsEnabled()
SchemaSG
Returns whether the property "enableJavaConventions" is enabled. Defaults to true.
isJavaNamingConventionsEnabled
in interface SchemaSG
public boolean isFixedAttributeConstantProperty()
SchemaSG
Returns whether the property "isFixedAttributeConstantProperty" is enabled. Defaults to false.
isFixedAttributeConstantProperty
in interface SchemaSG
public boolean isGeneratingIsSetMethod()
SchemaSG
Returns whether the property "generateIsSetMethod" is enabled. Defaults to false.
isGeneratingIsSetMethod
in interface SchemaSG
public boolean isUnderscoreWordSeparator()
SchemaSG
Returns whether the property "underscoreBinding" has the value "asWordSeparator". Defaults to true.
isUnderscoreWordSeparator
in interface SchemaSG
public JAXBJavaType[] getJAXBJavaTypes()
SchemaSG
Returns the globally configured instances of JAXBJavaType
.
getJAXBJavaTypes
in interface SchemaSG
public XsQName[] getTypesafeEnumBase()
SchemaSG
Returns 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
SchemaSG
Generates the "Configuration.xml" file as a DOM node. Event handlers may modify the DOM node.
getConfigFile
in interface SchemaSG
pPackageName
- 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
SchemaSG
Creates the "jaxb.properties" file.
generateJaxbProperties
in interface SchemaSG
org.xml.sax.SAXException
public SGFactory getFactory()
SGItem
Returns the factory that created this item.
getFactory
in interface SGItem
public SchemaSG getSchema()
SGItem
Returns the items schema.
getSchema
in interface SGItem
public org.xml.sax.Locator getLocator()
SGItem
Returns the items location in the schema; useful for error messages.
getLocator
in interface SGItem
public void init() throws org.xml.sax.SAXException
SGItem
Initializes the item.
init
in interface SGItem
org.xml.sax.SAXException
public SchemaSGChain getHeadOfChain()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |