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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG
All Implemented Interfaces:
SchemaSGChain

public class JAXBSchemaSG
extends java.lang.Object
implements SchemaSGChain

Author:
Jochen Wiedmann

Constructor Summary
JAXBSchemaSG(SGFactory pFactory, XSSchema pSchema)
          Creates a new instance of JAXBSchemaSG.
 
Method Summary
 void generate(SchemaSG pController)
           
protected  java.lang.String generateConfigFile(SchemaSG pController, java.lang.String pPackageName, java.util.List pContextList)
           
 void generateJaxbProperties(SchemaSG pController)
           
 java.lang.String getCollectionType(SchemaSG pController)
           
 org.w3c.dom.Document getConfigFile(SchemaSG pController, java.lang.String pPackageName, java.util.List pContextList)
           
 ObjectSG getElement(SchemaSG pController, XsQName pName)
           
 ObjectSG[] getElements(SchemaSG pController)
           
 SGFactory getFactory(SchemaSG pController)
           
 GroupSG getGroup(SchemaSG pController, XsQName pName)
           
 GroupSG[] getGroups(SchemaSG pController)
           
 JavaSourceFactory getJavaSourceFactory(SchemaSG pController)
           
 JAXBJavaType[] getJAXBJavaTypes(SchemaSG pController)
           
 org.xml.sax.Locator getLocator(SchemaSG pController)
           
protected  JavaSource getObjectFactory(SchemaSG pController, java.lang.String pPackageName, java.util.List pContextList)
           
 ObjectSG[] getObjects(SchemaSG pController)
           
 SchemaSG getSchema(SchemaSG pController)
           
 TypeSG getType(SchemaSG pController, XsQName pName)
           
 TypeSG[] getTypes(SchemaSG pController)
           
 XsQName[] getTypesafeEnumBase(SchemaSG pController)
           
protected  XSSchema getXSSchema()
           
 void init(SchemaSG pController)
           
 boolean isBindingStyleModelGroup(SchemaSG pController)
           
 boolean isChoiceContentProperty(SchemaSG pController)
           
 boolean isFailFastCheckEnabled(SchemaSG pController)
           
 boolean isFixedAttributeConstantProperty(SchemaSG pController)
           
 boolean isGeneratingIsSetMethod(SchemaSG pController)
           
 boolean isJavaNamingConventionsEnabled(SchemaSG pController)
           
 boolean isUnderscoreWordSeparator(SchemaSG pController)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBSchemaSG

public JAXBSchemaSG(SGFactory pFactory,
                    XSSchema pSchema)

Creates a new instance of JAXBSchemaSG.

Method Detail

getSchema

public SchemaSG getSchema(SchemaSG pController)
Specified by:
getSchema in interface SchemaSGChain

getLocator

public org.xml.sax.Locator getLocator(SchemaSG pController)
Specified by:
getLocator in interface SchemaSGChain

getFactory

public SGFactory getFactory(SchemaSG pController)
Specified by:
getFactory in interface SchemaSGChain

getXSSchema

protected XSSchema getXSSchema()

init

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

getType

public TypeSG getType(SchemaSG pController,
                      XsQName pName)
               throws org.xml.sax.SAXException
Specified by:
getType in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

getGroups

public GroupSG[] getGroups(SchemaSG pController)
                    throws org.xml.sax.SAXException
Specified by:
getGroups in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

getGroup

public GroupSG getGroup(SchemaSG pController,
                        XsQName pName)
                 throws org.xml.sax.SAXException
Specified by:
getGroup in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

getTypes

public TypeSG[] getTypes(SchemaSG pController)
                  throws org.xml.sax.SAXException
Specified by:
getTypes in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

getObjects

public ObjectSG[] getObjects(SchemaSG pController)
                      throws org.xml.sax.SAXException
Specified by:
getObjects in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

getElement

public ObjectSG getElement(SchemaSG pController,
                           XsQName pName)
                    throws org.xml.sax.SAXException
Specified by:
getElement in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

getCollectionType

public java.lang.String getCollectionType(SchemaSG pController)
Specified by:
getCollectionType in interface SchemaSGChain

getJavaSourceFactory

public JavaSourceFactory getJavaSourceFactory(SchemaSG pController)
Specified by:
getJavaSourceFactory in interface SchemaSGChain

generate

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

getElements

public ObjectSG[] getElements(SchemaSG pController)
                       throws org.xml.sax.SAXException
Specified by:
getElements in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

isBindingStyleModelGroup

public boolean isBindingStyleModelGroup(SchemaSG pController)
Specified by:
isBindingStyleModelGroup in interface SchemaSGChain

isChoiceContentProperty

public boolean isChoiceContentProperty(SchemaSG pController)
Specified by:
isChoiceContentProperty in interface SchemaSGChain

isFailFastCheckEnabled

public boolean isFailFastCheckEnabled(SchemaSG pController)
Specified by:
isFailFastCheckEnabled in interface SchemaSGChain

isJavaNamingConventionsEnabled

public boolean isJavaNamingConventionsEnabled(SchemaSG pController)
Specified by:
isJavaNamingConventionsEnabled in interface SchemaSGChain

isFixedAttributeConstantProperty

public boolean isFixedAttributeConstantProperty(SchemaSG pController)
Specified by:
isFixedAttributeConstantProperty in interface SchemaSGChain

isGeneratingIsSetMethod

public boolean isGeneratingIsSetMethod(SchemaSG pController)
Specified by:
isGeneratingIsSetMethod in interface SchemaSGChain

isUnderscoreWordSeparator

public boolean isUnderscoreWordSeparator(SchemaSG pController)
Specified by:
isUnderscoreWordSeparator in interface SchemaSGChain

getJAXBJavaTypes

public JAXBJavaType[] getJAXBJavaTypes(SchemaSG pController)
Specified by:
getJAXBJavaTypes in interface SchemaSGChain

getTypesafeEnumBase

public XsQName[] getTypesafeEnumBase(SchemaSG pController)
Specified by:
getTypesafeEnumBase in interface SchemaSGChain

getConfigFile

public org.w3c.dom.Document getConfigFile(SchemaSG pController,
                                          java.lang.String pPackageName,
                                          java.util.List pContextList)
                                   throws org.xml.sax.SAXException
Specified by:
getConfigFile in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

generateConfigFile

protected java.lang.String generateConfigFile(SchemaSG pController,
                                              java.lang.String pPackageName,
                                              java.util.List pContextList)
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

generateJaxbProperties

public void generateJaxbProperties(SchemaSG pController)
                            throws org.xml.sax.SAXException
Specified by:
generateJaxbProperties in interface SchemaSGChain
Throws:
org.xml.sax.SAXException

getObjectFactory

protected JavaSource getObjectFactory(SchemaSG pController,
                                      java.lang.String pPackageName,
                                      java.util.List pContextList)
                               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException