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

Class JAXBTypeSG

Implemented Interfaces:
TypeSGChain

public class JAXBTypeSG
extends JAXBSGItem
implements TypeSGChain

Authors:
Jochen Wiedmann
Ias

Constructor Summary

JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType)
Creates a new, global instance of JAXBTypeSG.
JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, Context pClassContext, XsQName pName)
Creates a new, local instance of JAXBTypeSG.
JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, XsQName pName)

Method Summary

void
generate(TypeSG pController)
void
generate(TypeSG pController, JavaSource pSource)
ComplexTypeSG
getComplexTypeSG(TypeSG pController)
TypeSG
getExtendedType(TypeSG pController)
SGFactory
getFactory(TypeSG pController)
Locator
getLocator(TypeSG pController)
XsQName
getName(TypeSG pController)
Object
getProperty(TypeSG pController, String pName)
TypeSG
getRestrictedType(TypeSG pController)
JavaQName
getRuntimeType(TypeSG pController)
SchemaSG
getSchema(TypeSG pController)
XsSchemaHeader
getSchemaHeader(TypeSG pController)
SimpleTypeSG
getSimpleTypeSG(TypeSG pController)
JavaField
getXMLField(TypeSG pController, JavaSource pSource, String pFieldName, String pDefaultValue)
JavaMethod
getXMLGetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pMethodName)
JavaMethod
getXMLIsSetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pMethodName)
The implementation of this method is temporarily experimental.
JavaMethod
getXMLSetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pParamName, String pMethodName, boolean pSetIsSet)
protected XSType
getXSType()
void
init(TypeSG pController)
boolean
isComplex(TypeSG pController)
boolean
isExtension(TypeSG pController)
boolean
isGlobalClass(TypeSG pController)
boolean
isGlobalType(TypeSG pController)
boolean
isRestriction(TypeSG pController)
Object
newComplexTypeSG(TypeSG pController)
Object
newSimpleTypeSG(TypeSG pController)
void
setProperty(TypeSG pController, String pName, Object pValue)

Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.JAXBSGItem

getFactory, getLocator, getSchema, getXSObject

Constructor Details

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory,
                     SchemaSG pSchema,
                     XSType pType)
            throws SAXException
Creates a new, global instance of JAXBTypeSG.

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory,
                     SchemaSG pSchema,
                     XSType pType,
                     Context pClassContext,
                     XsQName pName)
            throws SAXException
Creates a new, local instance of JAXBTypeSG. Classes are generated into the given context.

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory,
                     SchemaSG pSchema,
                     XSType pType,
                     XsQName pName)
            throws SAXException

Method Details

generate

public void generate(TypeSG pController)
            throws SAXException
Specified by:
generate in interface TypeSGChain

generate

public void generate(TypeSG pController,
                     JavaSource pSource)
            throws SAXException
Specified by:
generate in interface TypeSGChain

getComplexTypeSG

public ComplexTypeSG getComplexTypeSG(TypeSG pController)
Specified by:
getComplexTypeSG in interface TypeSGChain

getExtendedType

public TypeSG getExtendedType(TypeSG pController)
Specified by:
getExtendedType in interface TypeSGChain

getFactory

public SGFactory getFactory(TypeSG pController)
Specified by:
getFactory in interface TypeSGChain

getLocator

public Locator getLocator(TypeSG pController)
Specified by:
getLocator in interface TypeSGChain

getName

public XsQName getName(TypeSG pController)
Specified by:
getName in interface TypeSGChain

getProperty

public Object getProperty(TypeSG pController,
                          String pName)
Specified by:
getProperty in interface TypeSGChain

getRestrictedType

public TypeSG getRestrictedType(TypeSG pController)
Specified by:
getRestrictedType in interface TypeSGChain

getRuntimeType

public JavaQName getRuntimeType(TypeSG pController)
            throws SAXException
Specified by:
getRuntimeType in interface TypeSGChain

getSchema

public SchemaSG getSchema(TypeSG pController)
Specified by:
getSchema in interface TypeSGChain

getSchemaHeader

public XsSchemaHeader getSchemaHeader(TypeSG pController)
Specified by:
getSchemaHeader in interface TypeSGChain

getSimpleTypeSG

public SimpleTypeSG getSimpleTypeSG(TypeSG pController)
Specified by:
getSimpleTypeSG in interface TypeSGChain

getXMLField

public JavaField getXMLField(TypeSG pController,
                             JavaSource pSource,
                             String pFieldName,
                             String pDefaultValue)
            throws SAXException
Specified by:
getXMLField in interface TypeSGChain

getXMLGetMethod

public JavaMethod getXMLGetMethod(TypeSG pController,
                                  JavaSource pSource,
                                  String pFieldName,
                                  String pMethodName)
            throws SAXException
Specified by:
getXMLGetMethod in interface TypeSGChain

getXMLIsSetMethod

public JavaMethod getXMLIsSetMethod(TypeSG pController,
                                    JavaSource pSource,
                                    String pFieldName,
                                    String pMethodName)
            throws SAXException
The implementation of this method is temporarily experimental. isSet and unset methods will be implemented by a flag and corresponding default value if it exist.
Specified by:
getXMLIsSetMethod in interface TypeSGChain

getXMLSetMethod

public JavaMethod getXMLSetMethod(TypeSG pController,
                                  JavaSource pSource,
                                  String pFieldName,
                                  String pParamName,
                                  String pMethodName,
                                  boolean pSetIsSet)
            throws SAXException
Specified by:
getXMLSetMethod in interface TypeSGChain

getXSType

protected XSType getXSType()

init

public void init(TypeSG pController)
            throws SAXException
Specified by:
init in interface TypeSGChain

isComplex

public boolean isComplex(TypeSG pController)
Specified by:
isComplex in interface TypeSGChain

isExtension

public boolean isExtension(TypeSG pController)
Specified by:
isExtension in interface TypeSGChain

isGlobalClass

public boolean isGlobalClass(TypeSG pController)
Specified by:
isGlobalClass in interface TypeSGChain

isGlobalType

public boolean isGlobalType(TypeSG pController)
Specified by:
isGlobalType in interface TypeSGChain

isRestriction

public boolean isRestriction(TypeSG pController)
Specified by:
isRestriction in interface TypeSGChain

newComplexTypeSG

public Object newComplexTypeSG(TypeSG pController)
            throws SAXException
Specified by:
newComplexTypeSG in interface TypeSGChain

newSimpleTypeSG

public Object newSimpleTypeSG(TypeSG pController)
            throws SAXException
Specified by:
newSimpleTypeSG in interface TypeSGChain

setProperty

public void setProperty(TypeSG pController,
                        String pName,
                        Object pValue)
Specified by:
setProperty in interface TypeSGChain