org.apache.ws.jaxme.generator.types

Class StringSG

Implemented Interfaces:
SimpleTypeSGChain
Known Direct Subclasses:
IDREFSG, IDSG

public class StringSG
extends AtomicTypeSGImpl

Author:
Jochen Wiedmann

Field Summary

static JavaQName
STRING_TYPE
The string type.

Constructor Summary

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

Method Summary

void
addValidation(SimpleTypeSG pController, JavaMethod pMethod, DirectAccessible pValue)
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, Object pValue, DirectAccessible pData)
protected String
getDatatypeName()
protected JavaQName
getDatatypeType()
JavaQName
getRuntimeType(SimpleTypeSG pController)
boolean
isCausingParseConversionEvent(SimpleTypeSG pController)

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

getAtomicType, getCastFromString, getCastFromString, getCastToString, 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

Field Details

STRING_TYPE

public static final JavaQName STRING_TYPE
The string type.

Constructor Details

StringSG

public StringSG(SGFactory pFactory,
                SchemaSG pSchema,
                XSType pType)
            throws SAXException
Creates a new instance of StringTypeSG.java.

Method Details

addValidation

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

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)
Specified by:
getCastFromString in interface SimpleTypeSGChain
Overrides:
getCastFromString in interface AtomicTypeSGImpl

getCastFromString

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

getCastToString

public TypedValue getCastToString(SimpleTypeSG pController,
                                  Object pValue,
                                  DirectAccessible pData)
Overrides:
getCastToString in interface AtomicTypeSGImpl

getDatatypeName

protected String getDatatypeName()
Overrides:
getDatatypeName in interface AtomicTypeSGImpl

getDatatypeType

protected JavaQName getDatatypeType()
Overrides:
getDatatypeType in interface AtomicTypeSGImpl

getRuntimeType

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

isCausingParseConversionEvent

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