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

Class JAXBTypeSG

public class JAXBTypeSG extends JAXBSGItem implements TypeSGChain

Author: Jochen Wiedmann Ias

Constructor Summary
protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, JAXBProperty.BaseType pBaseType)

Creates a new, global instance of JAXBTypeSG.

protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, XsQName pName, JAXBProperty.BaseType pBaseType)
protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, Context pClassContext, XsQName pName, JAXBProperty.BaseType pBaseType)

Creates a new, local instance of JAXBTypeSG.

Method Summary
voidgenerate(TypeSG pController)
voidgenerate(TypeSG pController, JavaSource pSource)
ComplexTypeSGgetComplexTypeSG(TypeSG pController)
TypeSGgetExtendedType(TypeSG pController)
SGFactorygetFactory(TypeSG pController)
LocatorgetLocator(TypeSG pController)
XsQNamegetName(TypeSG pController)
ObjectgetProperty(TypeSG pController, String pName)
TypeSGgetRestrictedType(TypeSG pController)
JavaQNamegetRuntimeType(TypeSG pController)
SchemaSGgetSchema(TypeSG pController)
XsSchemaHeadergetSchemaHeader(TypeSG pController)
SimpleTypeSGgetSimpleTypeSG(TypeSG pController)
JavaFieldgetXMLField(TypeSG pController, JavaSource pSource, String pFieldName, String pDefaultValue)
JavaMethodgetXMLGetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pMethodName)
JavaMethodgetXMLIsSetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pMethodName)
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.
JavaMethodgetXMLSetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pParamName, String pMethodName, boolean pSetIsSet)
protected XSTypegetXSType()
voidinit(TypeSG pController)
booleanisComplex(TypeSG pController)
booleanisExtension(TypeSG pController)
booleanisGlobalClass(TypeSG pController)
booleanisGlobalType(TypeSG pController)
booleanisRestriction(TypeSG pController)
ObjectnewComplexTypeSG(TypeSG pController)
ObjectnewSimpleTypeSG(TypeSG pController)
voidsetProperty(TypeSG pController, String pName, Object pValue)

Constructor Detail

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, JAXBProperty.BaseType pBaseType)

Creates a new, global instance of JAXBTypeSG.

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, XsQName pName, JAXBProperty.BaseType pBaseType)

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, Context pClassContext, XsQName pName, JAXBProperty.BaseType pBaseType)

Creates a new, local instance of JAXBTypeSG. Classes are generated into the given context.

Method Detail

generate

public void generate(TypeSG pController)

generate

public void generate(TypeSG pController, JavaSource pSource)

getComplexTypeSG

public ComplexTypeSG getComplexTypeSG(TypeSG pController)

getExtendedType

public TypeSG getExtendedType(TypeSG pController)

getFactory

public SGFactory getFactory(TypeSG pController)

getLocator

public Locator getLocator(TypeSG pController)

getName

public XsQName getName(TypeSG pController)

getProperty

public Object getProperty(TypeSG pController, String pName)

getRestrictedType

public TypeSG getRestrictedType(TypeSG pController)

getRuntimeType

public JavaQName getRuntimeType(TypeSG pController)

getSchema

public SchemaSG getSchema(TypeSG pController)

getSchemaHeader

public XsSchemaHeader getSchemaHeader(TypeSG pController)

getSimpleTypeSG

public SimpleTypeSG getSimpleTypeSG(TypeSG pController)

getXMLField

public JavaField getXMLField(TypeSG pController, JavaSource pSource, String pFieldName, String pDefaultValue)

getXMLGetMethod

public JavaMethod getXMLGetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pMethodName)

getXMLIsSetMethod

public JavaMethod getXMLIsSetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pMethodName)
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.

getXMLSetMethod

public JavaMethod getXMLSetMethod(TypeSG pController, JavaSource pSource, String pFieldName, String pParamName, String pMethodName, boolean pSetIsSet)

getXSType

protected XSType getXSType()

init

public void init(TypeSG pController)

isComplex

public boolean isComplex(TypeSG pController)

isExtension

public boolean isExtension(TypeSG pController)

isGlobalClass

public boolean isGlobalClass(TypeSG pController)

isGlobalType

public boolean isGlobalType(TypeSG pController)

isRestriction

public boolean isRestriction(TypeSG pController)

newComplexTypeSG

public Object newComplexTypeSG(TypeSG pController)

newSimpleTypeSG

public Object newSimpleTypeSG(TypeSG pController)

setProperty

public void setProperty(TypeSG pController, String pName, Object pValue)