org.apache.ws.jaxme.generator.types
Class PrimitiveTypeSG

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.JAXBSGItem
      extended by org.apache.ws.jaxme.generator.types.SimpleTypeSGImpl
          extended by org.apache.ws.jaxme.generator.types.AtomicTypeSGImpl
              extended by org.apache.ws.jaxme.generator.types.PrimitiveTypeSG
All Implemented Interfaces:
SimpleTypeSGChain
Direct Known Subclasses:
BooleanSG, ByteSG, DoubleSG, FloatSG, IntSG, LongSG, ShortSG

public abstract class PrimitiveTypeSG
extends AtomicTypeSGImpl

Author:
Jochen Wiedmann

Constructor Summary
protected PrimitiveTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType)
          Creates a new instance of PrimitiveTypeSG.java.
 
Method Summary
 void forAllNonNullValues(SimpleTypeSG pController, JavaMethod pMethod, java.lang.Object pValue, SGlet pSGlet)
           
 void forAllValues(SimpleTypeSG pController, JavaMethod pMethod, java.lang.Object pValue, SGlet pSGlet)
           
 TypedValue getCastFromString(SimpleTypeSG pController, JavaMethod pMethod, java.lang.Object pValue, java.lang.Object pData)
           
 TypedValue getCastToString(SimpleTypeSG pController, JavaMethod pMethod, java.lang.Object pValue, DirectAccessible pData)
           
 java.lang.Object getEqualsCheck(SimpleTypeSG pController, JavaMethod pMethod, java.lang.Object pValue1, java.lang.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, getDatatypeName, getDatatypeType, isAtomic, isCausingParseConversionEvent
 
Methods inherited from class org.apache.ws.jaxme.generator.types.SimpleTypeSGImpl
addValidation, generate, generate, getCollectionType, getFacet, getFacets, getFactory, getInitialValue, getListType, getLocator, getSchema, getUnionType, getXMLSetMethod, getXSType, hasSetMethod, init, isList, isNullable, isUnion, setNullable, setNullable
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.JAXBSGItem
getFactory, getLocator, getSchema, getXSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveTypeSG

protected PrimitiveTypeSG(SGFactory pFactory,
                          SchemaSG pSchema,
                          XSType pType)
                   throws org.xml.sax.SAXException

Creates a new instance of PrimitiveTypeSG.java.

Throws:
org.xml.sax.SAXException
Method Detail

isUnsigned

protected boolean isUnsigned()

getObjectRuntimeType

protected abstract JavaQName getObjectRuntimeType(SimpleTypeSG pController)

getPrimitiveRuntimeType

protected abstract JavaQName getPrimitiveRuntimeType(SimpleTypeSG pController)

getRuntimeType

public JavaQName getRuntimeType(SimpleTypeSG pController)

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 AtomicTypeSGImpl
Throws:
org.xml.sax.SAXException

getCastToString

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

forAllValues

public void forAllValues(SimpleTypeSG pController,
                         JavaMethod pMethod,
                         java.lang.Object pValue,
                         SGlet pSGlet)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

forAllNonNullValues

public void forAllNonNullValues(SimpleTypeSG pController,
                                JavaMethod pMethod,
                                java.lang.Object pValue,
                                SGlet pSGlet)
                         throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getEqualsCheck

public java.lang.Object getEqualsCheck(SimpleTypeSG pController,
                                       JavaMethod pMethod,
                                       java.lang.Object pValue1,
                                       java.lang.Object pValue2)
                                throws org.xml.sax.SAXException
Specified by:
getEqualsCheck in interface SimpleTypeSGChain
Overrides:
getEqualsCheck in class AtomicTypeSGImpl
Throws:
org.xml.sax.SAXException