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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.JAXBSGItem
      extended by org.apache.ws.jaxme.generator.sg.impl.JAXBTypeSG
All Implemented Interfaces:
TypeSGChain

public class JAXBTypeSG
extends JAXBSGItem
implements TypeSGChain

Author:
Jochen Wiedmann, Ias

Constructor Summary
protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, Context pClassContext, XsQName pName, JAXBProperty.BaseType pBaseType)
          Creates a new, local instance of JAXBTypeSG.
protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, JAXBProperty.BaseType pBaseType)
          Creates a new, global instance of JAXBTypeSG.
protected JAXBTypeSG(SGFactory pFactory, SchemaSG pSchema, XSType pType, XsQName pName, JAXBProperty.BaseType pBaseType)
           
 
Method Summary
 void generate(TypeSG pController)
           
 void generate(TypeSG pController, JavaSource pSource)
           
 ComplexTypeSG getComplexTypeSG(TypeSG pController)
           
 TypeSG getExtendedType(TypeSG pController)
           
 SGFactory getFactory(TypeSG pController)
           
 org.xml.sax.Locator getLocator(TypeSG pController)
           
 XsQName getName(TypeSG pController)
           
 java.lang.Object getProperty(TypeSG pController, java.lang.String pName)
           
 TypeSG getRestrictedType(TypeSG pController)
           
 JavaQName getRuntimeType(TypeSG pController)
           
 SchemaSG getSchema(TypeSG pController)
           
 XsSchemaHeader getSchemaHeader(TypeSG pController)
           
 SimpleTypeSG getSimpleTypeSG(TypeSG pController)
           
 JavaField getXMLField(TypeSG pController, JavaSource pSource, java.lang.String pFieldName, java.lang.String pDefaultValue)
           
 JavaMethod getXMLGetMethod(TypeSG pController, JavaSource pSource, java.lang.String pFieldName, java.lang.String pMethodName)
           
 JavaMethod getXMLIsSetMethod(TypeSG pController, JavaSource pSource, java.lang.String pFieldName, java.lang.String pMethodName)
          The implementation of this method is temporarily experimental.
 JavaMethod getXMLSetMethod(TypeSG pController, JavaSource pSource, java.lang.String pFieldName, java.lang.String pParamName, java.lang.String pMethodName, boolean pSetIsSet)
           
protected  XSType getXSType()
           
 void init(TypeSG pController)
           
 boolean isComplex(TypeSG pController)
           
 boolean isExtension(TypeSG pController)
           
 boolean isGlobalClass(TypeSG pController)
           
 boolean isGlobalType(TypeSG pController)
           
 boolean isRestriction(TypeSG pController)
           
 java.lang.Object newComplexTypeSG(TypeSG pController)
           
 java.lang.Object newSimpleTypeSG(TypeSG pController)
           
 void setProperty(TypeSG pController, java.lang.String pName, java.lang.Object pValue)
           
 
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

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory,
                     SchemaSG pSchema,
                     XSType pType,
                     JAXBProperty.BaseType pBaseType)
              throws org.xml.sax.SAXException

Creates a new, global instance of JAXBTypeSG.

Throws:
org.xml.sax.SAXException

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory,
                     SchemaSG pSchema,
                     XSType pType,
                     XsQName pName,
                     JAXBProperty.BaseType pBaseType)
              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

JAXBTypeSG

protected JAXBTypeSG(SGFactory pFactory,
                     SchemaSG pSchema,
                     XSType pType,
                     Context pClassContext,
                     XsQName pName,
                     JAXBProperty.BaseType pBaseType)
              throws org.xml.sax.SAXException

Creates a new, local instance of JAXBTypeSG. Classes are generated into the given context.

Throws:
org.xml.sax.SAXException
Method Detail

newComplexTypeSG

public java.lang.Object newComplexTypeSG(TypeSG pController)
                                  throws org.xml.sax.SAXException
Specified by:
newComplexTypeSG in interface TypeSGChain
Throws:
org.xml.sax.SAXException

getXSType

protected XSType getXSType()

getName

public XsQName getName(TypeSG pController)
Specified by:
getName in interface TypeSGChain

isGlobalType

public boolean isGlobalType(TypeSG pController)
Specified by:
isGlobalType in interface TypeSGChain

isGlobalClass

public boolean isGlobalClass(TypeSG pController)
Specified by:
isGlobalClass in interface TypeSGChain

isComplex

public boolean isComplex(TypeSG pController)
Specified by:
isComplex in interface TypeSGChain

getLocator

public org.xml.sax.Locator getLocator(TypeSG pController)
Specified by:
getLocator in interface TypeSGChain

getFactory

public SGFactory getFactory(TypeSG pController)
Specified by:
getFactory in interface TypeSGChain

getSchema

public SchemaSG getSchema(TypeSG pController)
Specified by:
getSchema in interface TypeSGChain

isExtension

public boolean isExtension(TypeSG pController)
Specified by:
isExtension in interface TypeSGChain

getExtendedType

public TypeSG getExtendedType(TypeSG pController)
Specified by:
getExtendedType in interface TypeSGChain

isRestriction

public boolean isRestriction(TypeSG pController)
Specified by:
isRestriction in interface TypeSGChain

getRestrictedType

public TypeSG getRestrictedType(TypeSG pController)
Specified by:
getRestrictedType in interface TypeSGChain

init

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

getComplexTypeSG

public ComplexTypeSG getComplexTypeSG(TypeSG pController)
Specified by:
getComplexTypeSG in interface TypeSGChain

getSimpleTypeSG

public SimpleTypeSG getSimpleTypeSG(TypeSG pController)
Specified by:
getSimpleTypeSG in interface TypeSGChain

generate

public void generate(TypeSG pController)
              throws org.xml.sax.SAXException
Specified by:
generate in interface TypeSGChain
Throws:
org.xml.sax.SAXException

generate

public void generate(TypeSG pController,
                     JavaSource pSource)
              throws org.xml.sax.SAXException
Specified by:
generate in interface TypeSGChain
Throws:
org.xml.sax.SAXException

getXMLField

public JavaField getXMLField(TypeSG pController,
                             JavaSource pSource,
                             java.lang.String pFieldName,
                             java.lang.String pDefaultValue)
                      throws org.xml.sax.SAXException
Specified by:
getXMLField in interface TypeSGChain
Throws:
org.xml.sax.SAXException

getXMLGetMethod

public JavaMethod getXMLGetMethod(TypeSG pController,
                                  JavaSource pSource,
                                  java.lang.String pFieldName,
                                  java.lang.String pMethodName)
                           throws org.xml.sax.SAXException
Specified by:
getXMLGetMethod in interface TypeSGChain
Throws:
org.xml.sax.SAXException

getXMLSetMethod

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

getXMLIsSetMethod

public JavaMethod getXMLIsSetMethod(TypeSG pController,
                                    JavaSource pSource,
                                    java.lang.String pFieldName,
                                    java.lang.String pMethodName)
                             throws org.xml.sax.SAXException
The implementation of this method is temporarily experimental. isSet and unset methods will be implemented by a flag and corresponding default value if it exist.

Specified by:
getXMLIsSetMethod in interface TypeSGChain
Throws:
org.xml.sax.SAXException

getRuntimeType

public JavaQName getRuntimeType(TypeSG pController)
                         throws org.xml.sax.SAXException
Specified by:
getRuntimeType in interface TypeSGChain
Throws:
org.xml.sax.SAXException

newSimpleTypeSG

public java.lang.Object newSimpleTypeSG(TypeSG pController)
                                 throws org.xml.sax.SAXException
Specified by:
newSimpleTypeSG in interface TypeSGChain
Throws:
org.xml.sax.SAXException

getProperty

public java.lang.Object getProperty(TypeSG pController,
                                    java.lang.String pName)
Specified by:
getProperty in interface TypeSGChain

setProperty

public void setProperty(TypeSG pController,
                        java.lang.String pName,
                        java.lang.Object pValue)
Specified by:
setProperty in interface TypeSGChain

getSchemaHeader

public XsSchemaHeader getSchemaHeader(TypeSG pController)
Specified by:
getSchemaHeader in interface TypeSGChain