org.apache.ws.jaxme.generator.sg
Interface ObjectSG

All Superinterfaces:
SGItem
All 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 Detail

getName

XsQName getName()

Returns the objects name.


getClassContext

Context getClassContext()

Returns the objects Context.


getTypeSG

TypeSG getTypeSG()

Returns the objects type.


getXMLInterface

JavaSource getXMLInterface()
                           throws org.xml.sax.SAXException

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

Throws:
org.xml.sax.SAXException

getXMLImplementation

JavaSource getXMLImplementation()
                                throws org.xml.sax.SAXException

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

Throws:
org.xml.sax.SAXException

getXMLHandler

JavaSource getXMLHandler()
                         throws org.xml.sax.SAXException

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

Throws:
org.xml.sax.SAXException

getXMLSerializer

JavaSource getXMLSerializer()
                            throws org.xml.sax.SAXException

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

Throws:
org.xml.sax.SAXException

generate

void generate()
              throws org.xml.sax.SAXException

Generates the objects sources.

Throws:
org.xml.sax.SAXException

isGlobal

boolean isGlobal()
                 throws org.xml.sax.SAXException
Returns whether the ObjectSG is global.

Throws:
org.xml.sax.SAXException