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

Class TypeSGImpl

Implemented Interfaces:
SGItem, TypeSG

public class TypeSGImpl
extends java.lang.Object
implements TypeSG, SGItem

Constructor Summary

TypeSGImpl(TypeSGChain o)

Method Summary

void
generate()
void
generate(JavaSource pSource)
ComplexTypeSG
getComplexTypeSG()
TypeSG
getExtendedType()
SGFactory
getFactory()
Returns the factory that created this item.
TypeSGChain
getHeadOfChain()
Locator
getLocator()
Returns the items location in the schema; useful for error messages.
XsQName
getName()
Object
getProperty(String pName)
TypeSG
getRestrictedType()
JavaQName
getRuntimeType()
SchemaSG
getSchema()
Returns the items schema.
XsSchemaHeader
getSchemaHeader()
SimpleTypeSG
getSimpleTypeSG()
JavaField
getXMLField(JavaSource pSource, String pFieldName, String pDefaultValue)
JavaMethod
getXMLGetMethod(JavaSource pSource, String pFieldName, String pMethodName)
JavaMethod
getXMLIsSetMethod(JavaSource pSource, String pFieldName, String pMethodName)
JavaMethod
getXMLSetMethod(JavaSource pSource, String pFieldName, String pParamName, String pMethodName, boolean pSetIsSet)
void
init()
Initializes the item.
boolean
isComplex()
boolean
isExtension()
boolean
isGlobalClass()
boolean
isGlobalType()
boolean
isRestriction()
Object
newComplexTypeSG()
Object
newSimpleTypeSG()
void
setProperty(String pName, Object pValue)

Constructor Details

TypeSGImpl

public TypeSGImpl(TypeSGChain o)

Method Details

generate

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

generate

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

getComplexTypeSG

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

getExtendedType

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

getFactory

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

getHeadOfChain

public TypeSGChain 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()
Specified by:
getName in interface TypeSG

getProperty

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

getRestrictedType

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

getRuntimeType

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

getSchema

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

getSchemaHeader

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

getSimpleTypeSG

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

getXMLField

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

getXMLGetMethod

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

getXMLIsSetMethod

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

getXMLSetMethod

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

init

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

isComplex

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

isExtension

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

isGlobalClass

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

isGlobalType

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

isRestriction

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

newComplexTypeSG

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

newSimpleTypeSG

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

setProperty

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