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

Class SimpleTypeSGImpl

Implemented Interfaces:
SGItem, SimpleTypeSG

public class SimpleTypeSGImpl
extends java.lang.Object
implements SimpleTypeSG, SGItem

Constructor Summary

SimpleTypeSGImpl(SimpleTypeSGChain o)

Method Summary

void
addValidation(JavaMethod pMethod, DirectAccessible pValue)
void
forAllNonNullValues(JavaMethod pMethod, Object pValue, SGlet pSGlet)
void
forAllValues(JavaMethod pMethod, Object pValue, SGlet pSGlet)
void
generate()
void
generate(JavaSource pSource)
AtomicTypeSG
getAtomicType()
TypedValue
getCastFromString(String pValue)
TypedValue
getCastFromString(JavaMethod pMethod, Object pValue, Object pData)
TypedValue
getCastToString(JavaMethod pMethod, Object pValue, DirectAccessible pData)
String
getCollectionType()
Object
getEqualsCheck(JavaMethod pMethod, Object pValue1, Object pValue2)
Facet
getFacet(Facet.Type pType)
Facet[]
getFacets()
SGFactory
getFactory()
Returns the factory that created this item.
SimpleTypeSGChain
getHeadOfChain()
Object
getInitialValue(JavaSource pSource)
ListTypeSG
getListType()
Locator
getLocator()
Returns the items location in the schema; useful for error messages.
JavaQName
getRuntimeType()
SchemaSG
getSchema()
Returns the items schema.
UnionTypeSG
getUnionType()
JavaMethod
getXMLSetMethod(JavaSource pSource, String pFieldName, String pParamName, String pMethodName)
boolean
hasSetMethod()
void
init()
Initializes the item.
boolean
isAtomic()
boolean
isCausingParseConversionEvent()
boolean
isList()
boolean
isNullable()
boolean
isUnion()
void
setNullable(boolean pNullable)

Constructor Details

SimpleTypeSGImpl

public SimpleTypeSGImpl(SimpleTypeSGChain o)

Method Details

addValidation

public void addValidation(JavaMethod pMethod,
                          DirectAccessible pValue)
            throws SAXException
Specified by:
addValidation in interface SimpleTypeSG

forAllNonNullValues

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

forAllValues

public void forAllValues(JavaMethod pMethod,
                         Object pValue,
                         SGlet pSGlet)
            throws SAXException
Specified by:
forAllValues in interface SimpleTypeSG

generate

public void generate()
            throws SAXException
Specified by:
generate in interface SimpleTypeSG

generate

public void generate(JavaSource pSource)
            throws SAXException
Specified by:
generate in interface SimpleTypeSG

getAtomicType

public AtomicTypeSG getAtomicType()
Specified by:
getAtomicType in interface SimpleTypeSG

getCastFromString

public TypedValue getCastFromString(String pValue)
            throws SAXException
Specified by:
getCastFromString in interface SimpleTypeSG

getCastFromString

public TypedValue getCastFromString(JavaMethod pMethod,
                                    Object pValue,
                                    Object pData)
            throws SAXException
Specified by:
getCastFromString in interface SimpleTypeSG

getCastToString

public TypedValue getCastToString(JavaMethod pMethod,
                                  Object pValue,
                                  DirectAccessible pData)
            throws SAXException
Specified by:
getCastToString in interface SimpleTypeSG

getCollectionType

public String getCollectionType()
Specified by:
getCollectionType in interface SimpleTypeSG

getEqualsCheck

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

getFacet

public Facet getFacet(Facet.Type pType)
Specified by:
getFacet in interface SimpleTypeSG

getFacets

public Facet[] getFacets()
Specified by:
getFacets in interface SimpleTypeSG

getFactory

public SGFactory getFactory()
Returns the factory that created this item.
Specified by:
getFactory in interface SGItem

getHeadOfChain

public SimpleTypeSGChain getHeadOfChain()

getInitialValue

public Object getInitialValue(JavaSource pSource)
            throws SAXException
Specified by:
getInitialValue in interface SimpleTypeSG

getListType

public ListTypeSG getListType()
Specified by:
getListType in interface SimpleTypeSG

getLocator

public Locator getLocator()
Returns the items location in the schema; useful for error messages.
Specified by:
getLocator in interface SGItem

getRuntimeType

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

getSchema

public SchemaSG getSchema()
Returns the items schema.
Specified by:
getSchema in interface SGItem

getUnionType

public UnionTypeSG getUnionType()
Specified by:
getUnionType in interface SimpleTypeSG

getXMLSetMethod

public JavaMethod getXMLSetMethod(JavaSource pSource,
                                  String pFieldName,
                                  String pParamName,
                                  String pMethodName)
            throws SAXException
Specified by:
getXMLSetMethod in interface SimpleTypeSG

hasSetMethod

public boolean hasSetMethod()
            throws SAXException
Specified by:
hasSetMethod in interface SimpleTypeSG

init

public void init()
            throws SAXException
Initializes the item.
Specified by:
init in interface SGItem

isAtomic

public boolean isAtomic()
Specified by:
isAtomic in interface SimpleTypeSG

isCausingParseConversionEvent

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

isList

public boolean isList()
Specified by:
isList in interface SimpleTypeSG

isNullable

public boolean isNullable()
Specified by:
isNullable in interface SimpleTypeSG

isUnion

public boolean isUnion()
Specified by:
isUnion in interface SimpleTypeSG

setNullable

public void setNullable(boolean pNullable)
Specified by:
setNullable in interface SimpleTypeSG