|
||||||||||
| 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.TypeSGImpl
| Constructor Summary | |
TypeSGImpl(TypeSGChain o)
|
|
| Method Summary | |
void |
generate()
Generates the types sources. |
void |
generate(JavaSource p0)
Generates the types sources as an inner class of the given. |
ComplexTypeSG |
getComplexTypeSG()
If the type is complex: Returns an instance of ComplexTypeSG generating the type. |
TypeSG |
getExtendedType()
If the type is an extension: Returns the extended type. |
SGFactory |
getFactory()
Returns the factory that created this item. |
TypeSGChain |
getHeadOfChain()
|
org.xml.sax.Locator |
getLocator()
Returns the items location in the schema; useful for error messages. |
XsQName |
getName()
If the type is global: Returns the types name. |
java.lang.Object |
getProperty(java.lang.String p0)
A property allows to store custom data related to the type. |
TypeSG |
getRestrictedType()
If the type is a restriction: Returns the restricted type. |
JavaQName |
getRuntimeType()
Returns the types runtime type. |
SchemaSG |
getSchema()
Returns the items schema. |
XsSchemaHeader |
getSchemaHeader()
Returns information on the types syntactical context. |
SimpleTypeSG |
getSimpleTypeSG()
If the type is simple: Returns an instance of SimpleTypeSG
for generating the type. |
JavaField |
getXMLField(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
Generates a Java field for an instance of this type. |
JavaMethod |
getXMLGetMethod(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
Generates a get method returning an instance of this type. |
JavaMethod |
getXMLIsSetMethod(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
Generates an "isSet" method returning whether the field is set. |
JavaMethod |
getXMLSetMethod(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
Generates a set method returning an instance of this type. |
void |
init()
Initializes the item. |
boolean |
isComplex()
Returns whether the type is complex. |
boolean |
isExtension()
Returns whether the type is an extension of another type. |
boolean |
isGlobalClass()
Returns whether this type is generated with a global class. |
boolean |
isGlobalType()
Returns whether this is a global type. |
boolean |
isRestriction()
Returns whether the type is a restriction of another type. |
java.lang.Object |
newComplexTypeSG()
If the type is complex: Creates an instance of ComplexTypeSGChain generating the type. |
java.lang.Object |
newSimpleTypeSG()
If the type is simple: Creates a new instance of SimpleTypeSGChain generating the type. |
void |
setProperty(java.lang.String p0,
java.lang.Object p1)
A property allows to store custom data related to the type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TypeSGImpl(TypeSGChain o)
| Method Detail |
public JavaField getXMLField(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
throws org.xml.sax.SAXException
TypeSGGenerates a Java field for an instance of this type.
getXMLField in interface TypeSGorg.xml.sax.SAXException
public JavaMethod getXMLGetMethod(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
throws org.xml.sax.SAXException
TypeSGGenerates a get method returning an instance of this type.
getXMLGetMethod in interface TypeSGorg.xml.sax.SAXException
public JavaMethod getXMLSetMethod(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
throws org.xml.sax.SAXException
TypeSGGenerates a set method returning an instance of this type.
getXMLSetMethod in interface TypeSGorg.xml.sax.SAXException
public JavaMethod getXMLIsSetMethod(JavaSource p0,
java.lang.String p1,
java.lang.String p2)
throws org.xml.sax.SAXException
TypeSGGenerates an "isSet" method returning whether the field is set.
getXMLIsSetMethod in interface TypeSGorg.xml.sax.SAXException
public JavaQName getRuntimeType()
throws org.xml.sax.SAXException
TypeSGReturns the types runtime type.
getRuntimeType in interface TypeSGorg.xml.sax.SAXExceptionpublic boolean isGlobalType()
TypeSGReturns whether this is a global type.
isGlobalType in interface TypeSGpublic boolean isGlobalClass()
TypeSGReturns whether this type is generated with a global class.
isGlobalClass in interface TypeSG
public java.lang.Object newSimpleTypeSG()
throws org.xml.sax.SAXException
TypeSGIf the type is simple: Creates a new instance of
SimpleTypeSGChain generating the type.
Implementation note: The type
SimpleTypeSGChain
must not be exposed in the interface, because the interface
class is used to generate this type. In other words, this
interface must be compilable without the
SimpleTypeSGChain
interface.
newSimpleTypeSG in interface TypeSGorg.xml.sax.SAXException
public java.lang.Object newComplexTypeSG()
throws org.xml.sax.SAXException
TypeSGIf the type is complex: Creates an instance of
ComplexTypeSGChain generating the type.
Implementation note: The type
ComplexTypeSGChain
must not be exposed in the interface, because the interface
class is used to generate this type. In other words, this
interface must be compilable without the
ComplexTypeSGChain
interface.
newComplexTypeSG in interface TypeSGorg.xml.sax.SAXExceptionpublic ComplexTypeSG getComplexTypeSG()
TypeSGIf the type is complex: Returns an instance of
ComplexTypeSG generating the type.
getComplexTypeSG in interface TypeSGpublic SimpleTypeSG getSimpleTypeSG()
TypeSGIf the type is simple: Returns an instance of SimpleTypeSG
for generating the type.
getSimpleTypeSG in interface TypeSGpublic boolean isRestriction()
TypeSGReturns whether the type is a restriction of another type.
isRestriction in interface TypeSGpublic TypeSG getRestrictedType()
TypeSGIf the type is a restriction: Returns the restricted type.
getRestrictedType in interface TypeSGpublic boolean isExtension()
TypeSGReturns whether the type is an extension of another type.
isExtension in interface TypeSGpublic TypeSG getExtendedType()
TypeSGIf the type is an extension: Returns the extended type.
getExtendedType in interface TypeSGpublic XsSchemaHeader getSchemaHeader()
TypeSGReturns information on the types syntactical context.
getSchemaHeader in interface TypeSG
public void setProperty(java.lang.String p0,
java.lang.Object p1)
TypeSGA property allows to store custom data related to the type. Properties are used by external source generators. For example, the JDBC source generator will use this to store the complex types table name here.
setProperty in interface TypeSGpublic XsQName getName()
TypeSGIf the type is global: Returns the types name.
getName in interface TypeSGpublic java.lang.Object getProperty(java.lang.String p0)
TypeSGA property allows to store custom data related to the type. Properties are used by external source generators. For example, the JDBC source generator will use this to store the complex types table name here.
getProperty in interface TypeSG
public void generate(JavaSource p0)
throws org.xml.sax.SAXException
TypeSGGenerates the types sources as an inner class of the given.
generate in interface TypeSGorg.xml.sax.SAXException
public void generate()
throws org.xml.sax.SAXException
TypeSGGenerates the types sources.
generate in interface TypeSGorg.xml.sax.SAXExceptionpublic boolean isComplex()
TypeSGReturns whether the type is complex. If so, it is valid to
invoke the method TypeSG.getComplexTypeSG(). Otherwise, you may
invoke the method TypeSG.getSimpleTypeSG().
isComplex in interface TypeSGpublic org.xml.sax.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 SGItem
public void init()
throws org.xml.sax.SAXException
SGItemInitializes the item.
init in interface SGItemorg.xml.sax.SAXExceptionpublic SGFactory getFactory()
SGItemReturns the factory that created this item.
getFactory in interface SGItempublic TypeSGChain getHeadOfChain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||