net.sf.jaxme.generator.types
Class PrimitiveTypeSG

java.lang.Object
  extended bynet.sf.jaxme.generator.sg.impl.JAXBSGItem
      extended bynet.sf.jaxme.generator.types.SimpleTypeSGImpl
          extended bynet.sf.jaxme.generator.types.AtomicTypeSGImpl
              extended bynet.sf.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, net.sf.jaxme.xs.XSType pType)
          Creates a new instance of PrimitiveTypeSG.java.
 
Method Summary
 void forAllNonNullValues(SimpleTypeSG pController, net.sf.jaxme.js.JavaMethod pMethod, java.lang.Object pValue, SGlet pSGlet)
           
 void forAllValues(SimpleTypeSG pController, net.sf.jaxme.js.JavaMethod pMethod, java.lang.Object pValue, SGlet pSGlet)
           
 java.lang.Object getCastFromString(SimpleTypeSG pController, net.sf.jaxme.js.JavaMethod pMethod, java.lang.Object pValue, java.lang.Object pData)
           
 java.lang.Object getCastToString(SimpleTypeSG pController, java.lang.Object pValue, net.sf.jaxme.js.DirectAccessible pData)
           
 java.lang.Object getEqualsCheck(SimpleTypeSG pController, net.sf.jaxme.js.JavaMethod pMethod, java.lang.Object pValue1, java.lang.Object pValue2)
           
protected abstract  net.sf.jaxme.js.JavaQName getObjectRuntimeType(SimpleTypeSG pController)
           
protected abstract  net.sf.jaxme.js.JavaQName getPrimitiveRuntimeType(SimpleTypeSG pController)
           
 net.sf.jaxme.js.JavaQName getRuntimeType(SimpleTypeSG pController)
           
protected  boolean isUnsigned()
           
 
Methods inherited from class net.sf.jaxme.generator.types.AtomicTypeSGImpl
getAtomicType, getCastToString, getDatatypeName, isAtomic
 
Methods inherited from class net.sf.jaxme.generator.types.SimpleTypeSGImpl
addValidation, generate, generate, getCollectionType, getFacet, getFacets, getFactory, getInitialValue, getListType, getLocator, getSchema, getUnionType, getXMLSetMethod, getXSType, hasSetMethod, init, isList, isNullable, isUnion, setNullable
 
Methods inherited from class net.sf.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
 
Methods inherited from interface net.sf.jaxme.generator.sg.SimpleTypeSGChain
getCastFromString
 

Constructor Detail

PrimitiveTypeSG

protected PrimitiveTypeSG(SGFactory pFactory,
                          SchemaSG pSchema,
                          net.sf.jaxme.xs.XSType pType)
                   throws SAXException

Creates a new instance of PrimitiveTypeSG.java.

Method Detail

isUnsigned

protected boolean isUnsigned()

getObjectRuntimeType

protected abstract net.sf.jaxme.js.JavaQName getObjectRuntimeType(SimpleTypeSG pController)

getPrimitiveRuntimeType

protected abstract net.sf.jaxme.js.JavaQName getPrimitiveRuntimeType(SimpleTypeSG pController)

getRuntimeType

public net.sf.jaxme.js.JavaQName getRuntimeType(SimpleTypeSG pController)

getCastFromString

public java.lang.Object getCastFromString(SimpleTypeSG pController,
                                          net.sf.jaxme.js.JavaMethod pMethod,
                                          java.lang.Object pValue,
                                          java.lang.Object pData)
                                   throws SAXException
Specified by:
getCastFromString in interface SimpleTypeSGChain
Overrides:
getCastFromString in class AtomicTypeSGImpl
Throws:
SAXException

getCastToString

public java.lang.Object getCastToString(SimpleTypeSG pController,
                                        java.lang.Object pValue,
                                        net.sf.jaxme.js.DirectAccessible pData)
Overrides:
getCastToString in class AtomicTypeSGImpl

forAllValues

public void forAllValues(SimpleTypeSG pController,
                         net.sf.jaxme.js.JavaMethod pMethod,
                         java.lang.Object pValue,
                         SGlet pSGlet)
                  throws SAXException
Throws:
SAXException

forAllNonNullValues

public void forAllNonNullValues(SimpleTypeSG pController,
                                net.sf.jaxme.js.JavaMethod pMethod,
                                java.lang.Object pValue,
                                SGlet pSGlet)
                         throws SAXException
Throws:
SAXException

getEqualsCheck

public java.lang.Object getEqualsCheck(SimpleTypeSG pController,
                                       net.sf.jaxme.js.JavaMethod pMethod,
                                       java.lang.Object pValue1,
                                       java.lang.Object pValue2)
                                throws SAXException
Specified by:
getEqualsCheck in interface SimpleTypeSGChain
Overrides:
getEqualsCheck in class AtomicTypeSGImpl
Throws:
SAXException