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

Class ParsePrintSG

Implemented Interfaces:
SimpleTypeSGChain

public class ParsePrintSG
extends SimpleTypeSGChainImpl

Simple type chain for implementing jaxb:javaType/@parseMethod and/or jaxb:javaType/@printMethod.

Constructor Summary

ParsePrintSG(SimpleTypeSGChain pType, JAXBJavaType pJavaType)
Creates a new instance, which generates code for the given type.

Method Summary

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)
boolean
isCausingParseConversionEvent(SimpleTypeSG pController)

Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.SimpleTypeSGChainImpl

addValidation, forAllNonNullValues, forAllValues, generate, generate, getAtomicType, getCastFromString, getCastFromString, getCastToString, getCollectionType, getEqualsCheck, getFacet, getFacets, getFactory, getInitialValue, getListType, getLocator, getRuntimeType, getSchema, getUnionType, getXMLSetMethod, hasSetMethod, init, isAtomic, isCausingParseConversionEvent, isList, isNullable, isUnion, setNullable

Constructor Details

ParsePrintSG

public ParsePrintSG(SimpleTypeSGChain pType,
                    JAXBJavaType pJavaType)
Creates a new instance, which generates code for the given type.

Method Details

getCastFromString

public TypedValue getCastFromString(SimpleTypeSG pController,
                                    String pValue)
            throws SAXException
Specified by:
getCastFromString in interface SimpleTypeSGChain
Overrides:
getCastFromString in interface SimpleTypeSGChainImpl

getCastFromString

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

getCastToString

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

isCausingParseConversionEvent

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