org.apache.ws.jaxme.generator.types

Class SimpleTypeSGImpl

Implemented Interfaces:
SimpleTypeSGChain
Known Direct Subclasses:
AtomicTypeSGImpl, ListTypeSGImpl, UnionTypeSGImpl

public abstract class SimpleTypeSGImpl
extends JAXBSGItem
implements SimpleTypeSGChain

Author:
Jochen Wiedmann

Constructor Summary

SimpleTypeSGImpl(SGFactory pFactory, SchemaSG pSchema, XSType pType)
Creates a new instance of SimpleTypeSGImpl.

Method Summary

void
addValidation(SimpleTypeSG pController, JavaMethod pMethod, DirectAccessible pValue)
void
generate(SimpleTypeSG pController)
void
generate(SimpleTypeSG pController, JavaSource pSource)
AtomicTypeSG
getAtomicType(SimpleTypeSG pController)
String
getCollectionType(SimpleTypeSG pController)
Facet
getFacet(SimpleTypeSG pController, Facet.Type pType)
Facet[]
getFacets(SimpleTypeSG pController)
SGFactory
getFactory(SimpleTypeSG pController)
Object
getInitialValue(SimpleTypeSG pController, JavaSource pSource)
ListTypeSG
getListType(SimpleTypeSG pController)
Locator
getLocator(SimpleTypeSG pController)
SchemaSG
getSchema(SimpleTypeSG pController)
UnionTypeSG
getUnionType(SimpleTypeSG pController)
JavaMethod
getXMLSetMethod(SimpleTypeSG pController, JavaSource pSource, String pFieldName, String pParamName, String pMethodName)
protected XSType
getXSType()
boolean
hasSetMethod(SimpleTypeSG pController)
void
init(SimpleTypeSG pController)
boolean
isAtomic(SimpleTypeSG pController)
boolean
isList(SimpleTypeSG pController)
boolean
isNullable(SimpleTypeSG pController)
boolean
isUnion(SimpleTypeSG pController)
void
setNullable(boolean pNullable)
Sets whether the data type is nullable.
void
setNullable(SimpleTypeSG pController, boolean pNullable)

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

getFactory, getLocator, getSchema, getXSObject

Constructor Details

SimpleTypeSGImpl

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

Method Details

addValidation

public void addValidation(SimpleTypeSG pController,
                          JavaMethod pMethod,
                          DirectAccessible pValue)
            throws SAXException
Specified by:
addValidation in interface SimpleTypeSGChain

generate

public void generate(SimpleTypeSG pController)
Specified by:
generate in interface SimpleTypeSGChain

generate

public void generate(SimpleTypeSG pController,
                     JavaSource pSource)
Specified by:
generate in interface SimpleTypeSGChain

getAtomicType

public AtomicTypeSG getAtomicType(SimpleTypeSG pController)
Specified by:
getAtomicType in interface SimpleTypeSGChain

getCollectionType

public String getCollectionType(SimpleTypeSG pController)
Specified by:
getCollectionType in interface SimpleTypeSGChain

getFacet

public Facet getFacet(SimpleTypeSG pController,
                      Facet.Type pType)
Specified by:
getFacet in interface SimpleTypeSGChain

getFacets

public Facet[] getFacets(SimpleTypeSG pController)
Specified by:
getFacets in interface SimpleTypeSGChain

getFactory

public SGFactory getFactory(SimpleTypeSG pController)
Specified by:
getFactory in interface SimpleTypeSGChain

getInitialValue

public Object getInitialValue(SimpleTypeSG pController,
                              JavaSource pSource)
            throws SAXException
Specified by:
getInitialValue in interface SimpleTypeSGChain

getListType

public ListTypeSG getListType(SimpleTypeSG pController)
Specified by:
getListType in interface SimpleTypeSGChain

getLocator

public Locator getLocator(SimpleTypeSG pController)
Specified by:
getLocator in interface SimpleTypeSGChain

getSchema

public SchemaSG getSchema(SimpleTypeSG pController)
Specified by:
getSchema in interface SimpleTypeSGChain

getUnionType

public UnionTypeSG getUnionType(SimpleTypeSG pController)
Specified by:
getUnionType in interface SimpleTypeSGChain

getXMLSetMethod

public JavaMethod getXMLSetMethod(SimpleTypeSG pController,
                                  JavaSource pSource,
                                  String pFieldName,
                                  String pParamName,
                                  String pMethodName)
            throws SAXException
Specified by:
getXMLSetMethod in interface SimpleTypeSGChain

getXSType

protected XSType getXSType()

hasSetMethod

public boolean hasSetMethod(SimpleTypeSG pController)
Specified by:
hasSetMethod in interface SimpleTypeSGChain

init

public void init(SimpleTypeSG pController)
            throws SAXException
Specified by:
init in interface SimpleTypeSGChain

isAtomic

public boolean isAtomic(SimpleTypeSG pController)
Specified by:
isAtomic in interface SimpleTypeSGChain

isList

public boolean isList(SimpleTypeSG pController)
Specified by:
isList in interface SimpleTypeSGChain

isNullable

public boolean isNullable(SimpleTypeSG pController)
Specified by:
isNullable in interface SimpleTypeSGChain

isUnion

public boolean isUnion(SimpleTypeSG pController)
Specified by:
isUnion in interface SimpleTypeSGChain

setNullable

public void setNullable(boolean pNullable)
Sets whether the data type is nullable.

setNullable

public void setNullable(SimpleTypeSG pController,
                        boolean pNullable)
Specified by:
setNullable in interface SimpleTypeSGChain