org.apache.ws.jaxme.generator.types

Class PrimitiveTypeSG

Implemented Interfaces:
SimpleTypeSGChain
Known Direct Subclasses:
BooleanSG, ByteSG, DoubleSG, FloatSG, IntSG, LongSG, ShortSG

public abstract class PrimitiveTypeSG
extends AtomicTypeSGImpl

Author:
Jochen Wiedmann

Constructor Summary

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

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, 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 abstract JavaQName
getObjectRuntimeType(SimpleTypeSG pController)
protected abstract JavaQName
getPrimitiveRuntimeType(SimpleTypeSG pController)
JavaQName
getRuntimeType(SimpleTypeSG pController)
protected boolean
isUnsigned()

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

getAtomicType, getCastFromString, getCastFromString, getCastToString, getDatatypeName, getDatatypeType, getEqualsCheck, isAtomic, isCausingParseConversionEvent

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

PrimitiveTypeSG

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

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,
                                    JavaMethod pMethod,
                                    Object pValue,
                                    Object pData)
            throws SAXException
Specified by:
getCastFromString in interface SimpleTypeSGChain
Overrides:
getCastFromString in interface AtomicTypeSGImpl

getCastToString

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

getEqualsCheck

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

getObjectRuntimeType

protected abstract JavaQName getObjectRuntimeType(SimpleTypeSG pController)

getPrimitiveRuntimeType

protected abstract JavaQName getPrimitiveRuntimeType(SimpleTypeSG pController)

getRuntimeType

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

isUnsigned

protected boolean isUnsigned()