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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.JAXBSGItem
      extended by org.apache.ws.jaxme.generator.types.SimpleTypeSGImpl
All Implemented Interfaces:
SimpleTypeSGChain
Direct Known Subclasses:
AtomicTypeSGImpl, ListTypeSGImpl, UnionTypeSGImpl

public abstract class SimpleTypeSGImpl
extends JAXBSGItem
implements SimpleTypeSGChain

Author:
Jochen Wiedmann

Constructor Summary
protected SimpleTypeSGImpl(SGFactory pFactory, SchemaSG pSchema, XSType pType)
          Creates a new instance of SimpleTypeSGImpl.
 
Method Summary
 void addValidation(SimpleTypeSG pController, JavaMethod pMethod, DirectAccessible pValue)
           
 void generate(SimpleTypeSG pController)
           
 void generate(SimpleTypeSG pController, JavaSource pSource)
           
 AtomicTypeSG getAtomicType(SimpleTypeSG pController)
           
 java.lang.String getCollectionType(SimpleTypeSG pController)
           
 Facet getFacet(SimpleTypeSG pController, Facet.Type pType)
           
 Facet[] getFacets(SimpleTypeSG pController)
           
 SGFactory getFactory(SimpleTypeSG pController)
           
 java.lang.Object getInitialValue(SimpleTypeSG pController, JavaSource pSource)
           
 ListTypeSG getListType(SimpleTypeSG pController)
           
 org.xml.sax.Locator getLocator(SimpleTypeSG pController)
           
 SchemaSG getSchema(SimpleTypeSG pController)
           
 UnionTypeSG getUnionType(SimpleTypeSG pController)
           
 JavaMethod getXMLSetMethod(SimpleTypeSG pController, JavaSource pSource, java.lang.String pFieldName, java.lang.String pParamName, java.lang.String pMethodName)
           
protected  XSType getXSType()
           
 boolean hasSetMethod(SimpleTypeSG pController)
           
 void init(SimpleTypeSG pController)
           
 boolean isAtomic(SimpleTypeSG pController)
           
 boolean isList(SimpleTypeSG pController)
           
 boolean isNullable(SimpleTypeSG pController)
           
 boolean isUnion(SimpleTypeSG pController)
           
 void setNullable(boolean pNullable)
          Sets whether the data type is nullable.
 void setNullable(SimpleTypeSG pController, boolean pNullable)
           
 
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, getCastFromString, getCastFromString, getCastToString, getEqualsCheck, getRuntimeType, isCausingParseConversionEvent
 

Constructor Detail

SimpleTypeSGImpl

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

Creates a new instance of SimpleTypeSGImpl.

Throws:
org.xml.sax.SAXException
Method Detail

getXSType

protected XSType getXSType()

getFactory

public SGFactory getFactory(SimpleTypeSG pController)
Specified by:
getFactory in interface SimpleTypeSGChain

getSchema

public SchemaSG getSchema(SimpleTypeSG pController)
Specified by:
getSchema in interface SimpleTypeSGChain

getLocator

public org.xml.sax.Locator getLocator(SimpleTypeSG pController)
Specified by:
getLocator in interface SimpleTypeSGChain

isAtomic

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

isList

public boolean isList(SimpleTypeSG pController)
Specified by:
isList in interface SimpleTypeSGChain

isUnion

public boolean isUnion(SimpleTypeSG pController)
Specified by:
isUnion in interface SimpleTypeSGChain

hasSetMethod

public boolean hasSetMethod(SimpleTypeSG pController)
Specified by:
hasSetMethod in interface SimpleTypeSGChain

setNullable

public void setNullable(SimpleTypeSG pController,
                        boolean pNullable)
Specified by:
setNullable in interface SimpleTypeSGChain

setNullable

public void setNullable(boolean pNullable)
Sets whether the data type is nullable.


isNullable

public boolean isNullable(SimpleTypeSG pController)
Specified by:
isNullable in interface SimpleTypeSGChain

init

public void init(SimpleTypeSG pController)
          throws org.xml.sax.SAXException
Specified by:
init in interface SimpleTypeSGChain
Throws:
org.xml.sax.SAXException

getCollectionType

public java.lang.String getCollectionType(SimpleTypeSG pController)
Specified by:
getCollectionType in interface SimpleTypeSGChain

getUnionType

public UnionTypeSG getUnionType(SimpleTypeSG pController)
Specified by:
getUnionType in interface SimpleTypeSGChain

getListType

public ListTypeSG getListType(SimpleTypeSG pController)
Specified by:
getListType in interface SimpleTypeSGChain

getAtomicType

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

getFacets

public Facet[] getFacets(SimpleTypeSG pController)
Specified by:
getFacets in interface SimpleTypeSGChain

getFacet

public Facet getFacet(SimpleTypeSG pController,
                      Facet.Type pType)
Specified by:
getFacet in interface SimpleTypeSGChain

generate

public void generate(SimpleTypeSG pController)
Specified by:
generate in interface SimpleTypeSGChain

generate

public void generate(SimpleTypeSG pController,
                     JavaSource pSource)
Specified by:
generate in interface SimpleTypeSGChain

getInitialValue

public java.lang.Object getInitialValue(SimpleTypeSG pController,
                                        JavaSource pSource)
                                 throws org.xml.sax.SAXException
Specified by:
getInitialValue in interface SimpleTypeSGChain
Throws:
org.xml.sax.SAXException

getXMLSetMethod

public JavaMethod getXMLSetMethod(SimpleTypeSG pController,
                                  JavaSource pSource,
                                  java.lang.String pFieldName,
                                  java.lang.String pParamName,
                                  java.lang.String pMethodName)
                           throws org.xml.sax.SAXException
Specified by:
getXMLSetMethod in interface SimpleTypeSGChain
Throws:
org.xml.sax.SAXException

addValidation

public void addValidation(SimpleTypeSG pController,
                          JavaMethod pMethod,
                          DirectAccessible pValue)
                   throws org.xml.sax.SAXException
Specified by:
addValidation in interface SimpleTypeSGChain
Throws:
org.xml.sax.SAXException