|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.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. |
ObjectSG |
getElement(net.sf.jaxme.xs.xml.XsQName p0)
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(net.sf.jaxme.xs.xml.XsQName p0)
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()
|
net.sf.jaxme.js.JavaSourceFactory |
getJavaSourceFactory()
Returns the schemas JavaSourceFactory. |
net.sf.jaxme.xs.jaxb.JAXBJavaType[] |
getJAXBJavaTypes()
Returns the globally configured instances of JAXBJavaType. |
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(net.sf.jaxme.xs.xml.XsQName p0)
Returns the schemas global type with the given name or null, if no such type exists. |
TypeSG[] |
getTypes()
Returns the schemas global types. |
net.sf.jaxme.xs.xml.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 getType(net.sf.jaxme.xs.xml.XsQName p0)
throws SAXException
SchemaSGReturns the schemas global type with the given name or null, if no such type exists.
getType in interface SchemaSGSAXException
public void generate()
throws SAXException
SchemaSGPerforms the source generation.
generate in interface SchemaSGSAXException
public GroupSG[] getGroups()
throws SAXException
SchemaSGReturns the schemas model groups.
getGroups in interface SchemaSGSAXException
public ObjectSG[] getElements()
throws SAXException
SchemaSGReturns the schemas global elements.
getElements in interface SchemaSGSAXException
public GroupSG getGroup(net.sf.jaxme.xs.xml.XsQName p0)
throws SAXException
SchemaSGReturns the schemas global group with the given name or null, if no such type exists.
getGroup in interface SchemaSGSAXExceptionpublic java.lang.String getCollectionType()
SchemaSGReturns the schemas collection type, as specified by the JAXB globalBindings tag.
getCollectionType in interface SchemaSG
public TypeSG[] getTypes()
throws SAXException
SchemaSGReturns the schemas global types.
getTypes in interface SchemaSGSAXException
public ObjectSG[] getObjects()
throws SAXException
SchemaSGReturns the schemas global attributes and elements.
getObjects in interface SchemaSGSAXException
public ObjectSG getElement(net.sf.jaxme.xs.xml.XsQName p0)
throws SAXException
SchemaSGReturns the schemas global element with the given name or null, if no such element exists.
getElement in interface SchemaSGSAXExceptionpublic net.sf.jaxme.js.JavaSourceFactory getJavaSourceFactory()
SchemaSGReturns the schemas JavaSourceFactory.
getJavaSourceFactory in interface SchemaSGpublic 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 net.sf.jaxme.xs.jaxb.JAXBJavaType[] getJAXBJavaTypes()
SchemaSGReturns the globally configured instances of JAXBJavaType.
getJAXBJavaTypes in interface SchemaSGpublic net.sf.jaxme.xs.xml.XsQName[] getTypesafeEnumBase()
SchemaSGReturns the globally configured value for typesafeenumbase.
getTypesafeEnumBase in interface SchemaSG
public void generateJaxbProperties()
throws SAXException
SchemaSGCreates the "jaxb.properties" file.
generateJaxbProperties in interface SchemaSGSAXException
public void init()
throws SAXException
SGItemInitializes the item.
init in interface SGItemSAXExceptionpublic Locator getLocator()
SGItemReturns the items location in the schema; useful for error messages.
getLocator in interface SGItempublic SchemaSG getSchema()
SGItemReturns the items schema.
getSchema in interface SGItempublic SGFactory getFactory()
SGItemReturns the factory that created this item.
getFactory in interface SGItempublic SchemaSGChain getHeadOfChain()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||