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

Class SimpleTypeSGChainImpl

Implemented Interfaces:
SimpleTypeSGChain
Known Direct Subclasses:
EnumerationSG, ParsePrintSG, SimpleTypeRestrictionSG

public class SimpleTypeSGChainImpl
extends java.lang.Object
implements SimpleTypeSGChain

Constructor Summary

SimpleTypeSGChainImpl(SimpleTypeSGChain o)

Method Summary

void
addValidation(SimpleTypeSG pController, JavaMethod pMethod, DirectAccessible pValue)
void
forAllNonNullValues(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, SGlet pSGlet)
void
forAllValues(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, SGlet pSGlet)
void
generate(SimpleTypeSG pController)
void
generate(SimpleTypeSG pController, JavaSource pSource)
AtomicTypeSG
getAtomicType(SimpleTypeSG pController)
TypedValue
getCastFromString(SimpleTypeSG pController, String pValue)
TypedValue
getCastFromString(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, Object pData)
TypedValue
getCastToString(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, DirectAccessible pData)
String
getCollectionType(SimpleTypeSG pController)
Object
getEqualsCheck(SimpleTypeSG pController, JavaMethod pMethod, Object pValue1, Object pValue2)
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)
JavaQName
getRuntimeType(SimpleTypeSG pController)
SchemaSG
getSchema(SimpleTypeSG pController)
UnionTypeSG
getUnionType(SimpleTypeSG pController)
JavaMethod
getXMLSetMethod(SimpleTypeSG pController, JavaSource pSource, String pFieldName, String pParamName, String pMethodName)
boolean
hasSetMethod(SimpleTypeSG pController)
void
init(SimpleTypeSG pController)
boolean
isAtomic(SimpleTypeSG pController)
boolean
isCausingParseConversionEvent(SimpleTypeSG pController)
boolean
isList(SimpleTypeSG pController)
boolean
isNullable(SimpleTypeSG pController)
boolean
isUnion(SimpleTypeSG pController)
void
setNullable(SimpleTypeSG pController, boolean pNullable)

Constructor Details

SimpleTypeSGChainImpl

protected SimpleTypeSGChainImpl(SimpleTypeSGChain o)

Method Details

addValidation

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

forAllNonNullValues

public void forAllNonNullValues(SimpleTypeSG pController,
                                JavaMethod pMethod,
                                Object pValue,
                                SGlet pSGlet)
            throws SAXException
Specified by:
forAllNonNullValues in interface SimpleTypeSGChain

forAllValues

public void forAllValues(SimpleTypeSG pController,
                         JavaMethod pMethod,
                         Object pValue,
                         SGlet pSGlet)
            throws SAXException
Specified by:
forAllValues in interface SimpleTypeSGChain

generate

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

generate

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

getAtomicType

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

getCastFromString

public TypedValue getCastFromString(SimpleTypeSG pController,
                                    String pValue)
            throws SAXException
Specified by:
getCastFromString in interface SimpleTypeSGChain

getCastFromString

public TypedValue getCastFromString(SimpleTypeSG pController,
                                    JavaMethod pMethod,
                                    Object pValue,
                                    Object pData)
            throws SAXException
Specified by:
getCastFromString in interface SimpleTypeSGChain

getCastToString

public TypedValue getCastToString(SimpleTypeSG pController,
                                  JavaMethod pMethod,
                                  Object pValue,
                                  DirectAccessible pData)
            throws SAXException
Specified by:
getCastToString in interface SimpleTypeSGChain

getCollectionType

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

getEqualsCheck

public Object getEqualsCheck(SimpleTypeSG pController,
                             JavaMethod pMethod,
                             Object pValue1,
                             Object pValue2)
            throws SAXException
Specified by:
getEqualsCheck 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

getRuntimeType

public JavaQName getRuntimeType(SimpleTypeSG pController)
Specified by:
getRuntimeType 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

hasSetMethod

public boolean hasSetMethod(SimpleTypeSG pController)
            throws SAXException
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

isCausingParseConversionEvent

public boolean isCausingParseConversionEvent(SimpleTypeSG pController)
Specified by:
isCausingParseConversionEvent 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(SimpleTypeSG pController,
                        boolean pNullable)
Specified by:
setNullable in interface SimpleTypeSGChain