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

Class EnumerationSG

Implemented Interfaces:
SimpleTypeSGChain

public class EnumerationSG
extends SimpleTypeSGChainImpl

Author:
Jochen Wiedmann

Constructor Summary

EnumerationSG(SimpleTypeSGChain o, JavaQName pName, XSType pType)
Creates a new instance of EnumerationSG.java.

Method Summary

void
forAllNonNullValues(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, SGlet pSGlet)
void
generate(SimpleTypeSG pController)
void
generate(SimpleTypeSG pController, JavaSource pSource)
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)
JavaSource
getEnumClass(SimpleTypeSG pController)
JavaQName
getRuntimeType(SimpleTypeSG pController)
boolean
isCausingParseConversionEvent(SimpleTypeSG pController)

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

addValidation, forAllNonNullValues, forAllValues, generate, generate, getAtomicType, getCastFromString, getCastFromString, getCastToString, getCollectionType, getEqualsCheck, getFacet, getFacets, getFactory, getInitialValue, getListType, getLocator, getRuntimeType, getSchema, getUnionType, getXMLSetMethod, hasSetMethod, init, isAtomic, isCausingParseConversionEvent, isList, isNullable, isUnion, setNullable

Constructor Details

EnumerationSG

protected EnumerationSG(SimpleTypeSGChain o,
                        JavaQName pName,
                        XSType pType)
            throws SAXException
Creates a new instance of EnumerationSG.java.

Method Details

forAllNonNullValues

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

generate

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

generate

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

getCastFromString

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

getCastFromString

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

getCastToString

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

getEnumClass

public JavaSource getEnumClass(SimpleTypeSG pController)
            throws SAXException

getRuntimeType

public JavaQName getRuntimeType(SimpleTypeSG pController)
Specified by:
getRuntimeType in interface SimpleTypeSGChain
Overrides:
getRuntimeType in interface SimpleTypeSGChainImpl

isCausingParseConversionEvent

public boolean isCausingParseConversionEvent(SimpleTypeSG pController)
Specified by:
isCausingParseConversionEvent in interface SimpleTypeSGChain
Overrides:
isCausingParseConversionEvent in interface SimpleTypeSGChainImpl