org.apache.ws.jaxme.generator.sg.impl
Class ObjectSGImpl

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.ObjectSGImpl
All Implemented Interfaces:
ObjectSG, SGItem

public class ObjectSGImpl
extends java.lang.Object
implements ObjectSG, SGItem


Constructor Summary
ObjectSGImpl(ObjectSGChain o)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSGImpl

public ObjectSGImpl(ObjectSGChain o)
Method Detail

getName

public XsQName getName()
Description copied from interface: ObjectSG

Returns the objects name.

Specified by:
getName in interface ObjectSG

getClassContext

public Context getClassContext()
Description copied from interface: ObjectSG

Returns the objects Context.

Specified by:
getClassContext in interface ObjectSG

getTypeSG

public TypeSG getTypeSG()
Description copied from interface: ObjectSG

Returns the objects type.

Specified by:
getTypeSG in interface ObjectSG

getXMLInterface

public JavaSource getXMLInterface()
                           throws org.xml.sax.SAXException
Description copied from interface: ObjectSG

If the object is global and complex: Generates its XML interface.

Specified by:
getXMLInterface in interface ObjectSG
Throws:
org.xml.sax.SAXException

getXMLImplementation

public JavaSource getXMLImplementation()
                                throws org.xml.sax.SAXException
Description copied from interface: ObjectSG

If the object is global and complex: Generates its XML implementation.

Specified by:
getXMLImplementation in interface ObjectSG
Throws:
org.xml.sax.SAXException

getXMLHandler

public JavaSource getXMLHandler()
                         throws org.xml.sax.SAXException
Description copied from interface: ObjectSG

If the object is global and complex: Generates its XML handler.

Specified by:
getXMLHandler in interface ObjectSG
Throws:
org.xml.sax.SAXException

getXMLSerializer

public JavaSource getXMLSerializer()
                            throws org.xml.sax.SAXException
Description copied from interface: ObjectSG

If the object is global and complex: Generates its XML serializer.

Specified by:
getXMLSerializer in interface ObjectSG
Throws:
org.xml.sax.SAXException

generate

public void generate()
              throws org.xml.sax.SAXException
Description copied from interface: ObjectSG

Generates the objects sources.

Specified by:
generate in interface ObjectSG
Throws:
org.xml.sax.SAXException

isGlobal

public boolean isGlobal()
                 throws org.xml.sax.SAXException
Description copied from interface: ObjectSG
Returns whether the ObjectSG is global.

Specified by:
isGlobal in interface ObjectSG
Throws:
org.xml.sax.SAXException

getFactory

public SGFactory getFactory()
Description copied from interface: SGItem

Returns the factory that created this item.

Specified by:
getFactory in interface SGItem

getSchema

public SchemaSG getSchema()
Description copied from interface: SGItem

Returns the items schema.

Specified by:
getSchema in interface SGItem

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: SGItem

Returns the items location in the schema; useful for error messages.

Specified by:
getLocator in interface SGItem

init

public void init()
          throws org.xml.sax.SAXException
Description copied from interface: SGItem

Initializes the item.

Specified by:
init in interface SGItem
Throws:
org.xml.sax.SAXException

getHeadOfChain

public ObjectSGChain getHeadOfChain()