org.apache.ws.jaxme.generator.types

Class AtomicTypeSGImpl

Implemented Interfaces:
SimpleTypeSGChain
Known Direct Subclasses:
Base64BinarySG, DateTimeSG, DecimalSG, DurationSG, HexBinarySG, IntegerSG, PrimitiveTypeSG, QNameSG, StringSG

public abstract class AtomicTypeSGImpl
extends SimpleTypeSGImpl

Author:
Jochen Wiedmann

Constructor Summary

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

Method Summary

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)
protected abstract String
getDatatypeName()
protected abstract JavaQName
getDatatypeType()
Object
getEqualsCheck(SimpleTypeSG pController, JavaMethod pMethod, Object pValue1, Object pValue2)
boolean
isAtomic(SimpleTypeSG pController)
boolean
isCausingParseConversionEvent(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

Constructor Details

AtomicTypeSGImpl

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

Method Details

getAtomicType

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

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)
Specified by:
getCastToString in interface SimpleTypeSGChain

getDatatypeName

protected abstract String getDatatypeName()

getDatatypeType

protected abstract JavaQName getDatatypeType()

getEqualsCheck

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

isAtomic

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

isCausingParseConversionEvent

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