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

Class ObjectSGImpl

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()
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.

Constructor Details

ObjectSGImpl

public ObjectSGImpl(ObjectSGChain o)

Method Details

generate

public void generate()
            throws SAXException
Generates the objects sources.
Specified by:
generate in interface ObjectSG

getClassContext

public Context getClassContext()
Returns the objects Context.
Specified by:
getClassContext in interface ObjectSG

getFactory

public SGFactory getFactory()
Returns the factory that created this item.
Specified by:
getFactory in interface SGItem

getHeadOfChain

public ObjectSGChain getHeadOfChain()

getLocator

public Locator getLocator()
Returns the items location in the schema; useful for error messages.
Specified by:
getLocator in interface SGItem

getName

public XsQName getName()
Returns the objects name.
Specified by:
getName in interface ObjectSG

getSchema

public SchemaSG getSchema()
Returns the items schema.
Specified by:
getSchema in interface SGItem

getTypeSG

public TypeSG getTypeSG()
Returns the objects type.
Specified by:
getTypeSG in interface ObjectSG

getXMLHandler

public JavaSource getXMLHandler()
            throws SAXException
If the object is global and complex: Generates its XML handler.
Specified by:
getXMLHandler in interface ObjectSG

getXMLImplementation

public JavaSource getXMLImplementation()
            throws SAXException
If the object is global and complex: Generates its XML implementation.
Specified by:
getXMLImplementation in interface ObjectSG

getXMLInterface

public JavaSource getXMLInterface()
            throws SAXException
If the object is global and complex: Generates its XML interface.
Specified by:
getXMLInterface in interface ObjectSG

getXMLSerializer

public JavaSource getXMLSerializer()
            throws SAXException
If the object is global and complex: Generates its XML serializer.
Specified by:
getXMLSerializer in interface ObjectSG

init

public void init()
            throws SAXException
Initializes the item.
Specified by:
init in interface SGItem

isGlobal

public boolean isGlobal()
            throws SAXException
Returns whether the ObjectSG is global.
Specified by:
isGlobal in interface ObjectSG