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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.SimpleTypeSGChainImpl
      extended by org.apache.ws.jaxme.generator.sg.impl.ParsePrintSG
All 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, JavaMethod pMethod, java.lang.Object pValue, java.lang.Object pData)
           
 TypedValue getCastFromString(SimpleTypeSG pController, java.lang.String pValue)
           
 TypedValue getCastToString(SimpleTypeSG pController, JavaMethod pMethod, java.lang.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, getCollectionType, getEqualsCheck, getFacet, getFacets, getFactory, getInitialValue, getListType, getLocator, getRuntimeType, getSchema, getUnionType, getXMLSetMethod, hasSetMethod, init, isAtomic, isList, isNullable, isUnion, setNullable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParsePrintSG

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

Method Detail

getCastFromString

public TypedValue getCastFromString(SimpleTypeSG pController,
                                    JavaMethod pMethod,
                                    java.lang.Object pValue,
                                    java.lang.Object pData)
                             throws org.xml.sax.SAXException
Specified by:
getCastFromString in interface SimpleTypeSGChain
Overrides:
getCastFromString in class SimpleTypeSGChainImpl
Throws:
org.xml.sax.SAXException

getCastFromString

public TypedValue getCastFromString(SimpleTypeSG pController,
                                    java.lang.String pValue)
                             throws org.xml.sax.SAXException
Specified by:
getCastFromString in interface SimpleTypeSGChain
Overrides:
getCastFromString in class SimpleTypeSGChainImpl
Throws:
org.xml.sax.SAXException

getCastToString

public TypedValue getCastToString(SimpleTypeSG pController,
                                  JavaMethod pMethod,
                                  java.lang.Object pValue,
                                  DirectAccessible pData)
                           throws org.xml.sax.SAXException
Specified by:
getCastToString in interface SimpleTypeSGChain
Overrides:
getCastToString in class SimpleTypeSGChainImpl
Throws:
org.xml.sax.SAXException

isCausingParseConversionEvent

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