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

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
All Implemented Interfaces:
SimpleTypeSGChain
Direct Known Subclasses:
Base64BinarySG, DateTimeSG, DecimalSG, DurationSG, HexBinarySG, IntegerSG, PrimitiveTypeSG, QNameSG, StringSG

public abstract class AtomicTypeSGImpl
extends SimpleTypeSGImpl

Author:
Jochen Wiedmann

Constructor Summary
protected AtomicTypeSGImpl(SGFactory pFactory, SchemaSG pSchema, XSType pType)
          Creates a new instance of AtomicTypeSGImpl.
 
Method Summary
 AtomicTypeSG getAtomicType(SimpleTypeSG pController)
           
 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)
           
protected abstract  java.lang.String getDatatypeName()
           
protected abstract  JavaQName getDatatypeType()
           
 java.lang.Object getEqualsCheck(SimpleTypeSG pController, JavaMethod pMethod, java.lang.Object pValue1, java.lang.Object pValue2)
           
 boolean isAtomic(SimpleTypeSG pController)
           
 boolean isCausingParseConversionEvent(SimpleTypeSG pController)
           
 
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
 
Methods inherited from interface org.apache.ws.jaxme.generator.sg.SimpleTypeSGChain
forAllNonNullValues, forAllValues, getRuntimeType
 

Constructor Detail

AtomicTypeSGImpl

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

Creates a new instance of AtomicTypeSGImpl.

Throws:
org.xml.sax.SAXException
Method Detail

isAtomic

public boolean isAtomic(SimpleTypeSG pController)
Specified by:
isAtomic in interface SimpleTypeSGChain
Overrides:
isAtomic in class SimpleTypeSGImpl

getDatatypeName

protected abstract java.lang.String getDatatypeName()

getDatatypeType

protected abstract JavaQName getDatatypeType()

getAtomicType

public AtomicTypeSG getAtomicType(SimpleTypeSG pController)
Specified by:
getAtomicType in interface SimpleTypeSGChain
Overrides:
getAtomicType in class SimpleTypeSGImpl

getCastFromString

public TypedValue getCastFromString(SimpleTypeSG pController,
                                    java.lang.String pValue)
                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getCastFromString

public TypedValue getCastFromString(SimpleTypeSG pController,
                                    JavaMethod pMethod,
                                    java.lang.Object pValue,
                                    java.lang.Object pData)
                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getCastToString

public TypedValue getCastToString(SimpleTypeSG pController,
                                  JavaMethod pMethod,
                                  java.lang.Object pValue,
                                  DirectAccessible pData)

getEqualsCheck

public java.lang.Object getEqualsCheck(SimpleTypeSG pController,
                                       JavaMethod pMethod,
                                       java.lang.Object pValue1,
                                       java.lang.Object pValue2)
                                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

isCausingParseConversionEvent

public boolean isCausingParseConversionEvent(SimpleTypeSG pController)