Constructor and Description |
---|
ObjectSGImpl(ObjectSGChain o) |
Modifier and Type | Method and Description |
---|---|
void |
generate()
Generates the objects sources.
|
Context |
getClassContext()
Returns the objects
Context . |
SGFactory |
getFactory()
Returns the factory that created this item.
|
ObjectSGChain |
getHeadOfChain() |
org.xml.sax.Locator |
getLocator()
Returns the items location in the schema; useful for
error messages.
|
XsQName |
getName()
Returns the objects name.
|
SchemaSG |
getSchema()
Returns the items schema.
|
TypeSG |
getTypeSG()
Returns the objects type.
|
JavaSource |
getXMLHandler()
If the object is global and complex: Generates its XML handler.
|
JavaSource |
getXMLImplementation()
If the object is global and complex: Generates its XML implementation.
|
JavaSource |
getXMLInterface()
If the object is global and complex: Generates its XML interface.
|
JavaSource |
getXMLSerializer()
If the object is global and complex: Generates its XML serializer.
|
void |
init()
Initializes the item.
|
boolean |
isGlobal()
Returns whether the
ObjectSG is global. |
public ObjectSGImpl(ObjectSGChain o)
public XsQName getName()
ObjectSG
Returns the objects name.
public Context getClassContext()
ObjectSG
Returns the objects Context
.
getClassContext
in interface ObjectSG
public TypeSG getTypeSG()
ObjectSG
Returns the objects type.
public JavaSource getXMLInterface() throws org.xml.sax.SAXException
ObjectSG
If the object is global and complex: Generates its XML interface.
getXMLInterface
in interface ObjectSG
org.xml.sax.SAXException
public JavaSource getXMLImplementation() throws org.xml.sax.SAXException
ObjectSG
If the object is global and complex: Generates its XML implementation.
getXMLImplementation
in interface ObjectSG
org.xml.sax.SAXException
public JavaSource getXMLHandler() throws org.xml.sax.SAXException
ObjectSG
If the object is global and complex: Generates its XML handler.
getXMLHandler
in interface ObjectSG
org.xml.sax.SAXException
public JavaSource getXMLSerializer() throws org.xml.sax.SAXException
ObjectSG
If the object is global and complex: Generates its XML serializer.
getXMLSerializer
in interface ObjectSG
org.xml.sax.SAXException
public void generate() throws org.xml.sax.SAXException
ObjectSG
Generates the objects sources.
public boolean isGlobal() throws org.xml.sax.SAXException
ObjectSG
ObjectSG
is global.public SGFactory getFactory()
SGItem
Returns the factory that created this item.
getFactory
in interface SGItem
public SchemaSG getSchema()
SGItem
Returns the items schema.
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.
public ObjectSGChain getHeadOfChain()