org.apache.ws.jaxme.generator.types

Class ListTypeSGImpl

Implemented Interfaces:
SimpleTypeSGChain

public class ListTypeSGImpl
extends SimpleTypeSGImpl

Author:
Jochen Wiedmann

Field Summary

static JavaQName
ARRAYLIST_TYPE
static JavaQName
LIST_TYPE

Constructor Summary

ListTypeSGImpl(SGFactory pFactory, SchemaSG pSchemaSG, XSType pType, Context pClassContext, XsQName pName)
Creates a new instance of ListTypeSG in the given Context.

Method Summary

void
forAllNonNullValues(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, SGlet pSGlet)
void
forAllValues(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, SGlet pSGlet)
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)
Object
getEqualsCheck(SimpleTypeSG pController, JavaMethod pMethod, Object pValue1, Object pValue2)
Object
getInitialValue(SimpleTypeSG pController, JavaSource p0)
protected TypeSG
getItemType()
ListTypeSG
getListType(SimpleTypeSG pController)
JavaQName
getRuntimeType(SimpleTypeSG pController)
boolean
hasSetMethod(SimpleTypeSG pController)
void
init(SimpleTypeSG pController)
boolean
isCausingParseConversionEvent(SimpleTypeSG pController)
boolean
isList(SimpleTypeSG pController)

Methods inherited from class org.apache.ws.jaxme.generator.types.SimpleTypeSGImpl

addValidation, generate, generate, getAtomicType, getCollectionType, getFacet, getFacets, getFactory, getInitialValue, getListType, getLocator, getSchema, getUnionType, getXMLSetMethod, getXSType, hasSetMethod, init, isAtomic, isList, isNullable, isUnion, setNullable, setNullable

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

getFactory, getLocator, getSchema, getXSObject

Field Details

ARRAYLIST_TYPE

public static final JavaQName ARRAYLIST_TYPE

LIST_TYPE

public static final JavaQName LIST_TYPE

Constructor Details

ListTypeSGImpl

public ListTypeSGImpl(SGFactory pFactory,
                      SchemaSG pSchemaSG,
                      XSType pType,
                      Context pClassContext,
                      XsQName pName)
            throws SAXException
Creates a new instance of ListTypeSG in the given Context.

Method Details

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

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

getEqualsCheck

public Object getEqualsCheck(SimpleTypeSG pController,
                             JavaMethod pMethod,
                             Object pValue1,
                             Object pValue2)
            throws SAXException
Specified by:
getEqualsCheck in interface SimpleTypeSGChain

getInitialValue

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

getItemType

protected TypeSG getItemType()

getListType

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

getRuntimeType

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

hasSetMethod

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

init

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

isCausingParseConversionEvent

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

isList

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