org.apache.ws.jaxme.generator.types

Class UnionTypeSGImpl

Implemented Interfaces:
SimpleTypeSGChain

public class UnionTypeSGImpl
extends SimpleTypeSGImpl

Author:
Jochen Wiedmann

Field Summary

static JavaQName
OBJECT_TYPE

Constructor Summary

UnionTypeSGImpl(SGFactory pFactory, SchemaSG pSchema, XSType pType, Context pClassContext, XsQName pName)
Creates a new instance of UnionTypeSG.

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)
protected TypeSG[]
getMemberTypes()
JavaQName
getRuntimeType(SimpleTypeSG pController)
UnionTypeSG
getUnionType(SimpleTypeSG pController)
boolean
isCausingParseConversionEvent(SimpleTypeSG pController)
boolean
isUnion(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

OBJECT_TYPE

public static final JavaQName OBJECT_TYPE

Constructor Details

UnionTypeSGImpl

public UnionTypeSGImpl(SGFactory pFactory,
                       SchemaSG pSchema,
                       XSType pType,
                       Context pClassContext,
                       XsQName pName)
            throws SAXException
Creates a new instance of UnionTypeSG.

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

getMemberTypes

protected TypeSG[] getMemberTypes()

getRuntimeType

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

getUnionType

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

isCausingParseConversionEvent

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

isUnion

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