org.apache.ws.jaxme.generator.sg

Interface ObjectSG

All Superinterfaces:
SGItem
Known Implementing Classes:
ObjectSGImpl

public interface ObjectSG
extends SGItem

A source generator for elements or attributes.
Author:
Jochen Wiedmann

Method Summary

void
generate()
Generates the objects sources.
Context
getClassContext()
Returns the objects Context.
XsQName
getName()
Returns the objects name.
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.
boolean
isGlobal()
Returns whether the ObjectSG is global.

Methods inherited from interface org.apache.ws.jaxme.generator.sg.SGItem

getFactory, getLocator, getSchema, init

Method Details

generate

public void generate()
            throws SAXException
Generates the objects sources.

getClassContext

public Context getClassContext()
Returns the objects Context.

getName

public XsQName getName()
Returns the objects name.

getTypeSG

public TypeSG getTypeSG()
Returns the objects type.

getXMLHandler

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

getXMLImplementation

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

getXMLInterface

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

getXMLSerializer

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

isGlobal

public boolean isGlobal()
            throws SAXException
Returns whether the ObjectSG is global.