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

Class JAXBSchemaSG

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 String
generateConfigFile(SchemaSG pController, String pPackageName, List pContextList)
void
generateJaxbProperties(SchemaSG pController)
String
getCollectionType(SchemaSG pController)
Document
getConfigFile(SchemaSG pController, String pPackageName, 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)
JAXBJavaType[]
getJAXBJavaTypes(SchemaSG pController)
JavaSourceFactory
getJavaSourceFactory(SchemaSG pController)
Locator
getLocator(SchemaSG pController)
protected JavaSource
getObjectFactory(SchemaSG pController, String pPackageName, 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)

Constructor Details

JAXBSchemaSG

public JAXBSchemaSG(SGFactory pFactory,
                    XSSchema pSchema)
Creates a new instance of JAXBSchemaSG.

Method Details

generate

public void generate(SchemaSG pController)
            throws SAXException
Specified by:
generate in interface SchemaSGChain

generateConfigFile

protected String generateConfigFile(SchemaSG pController,
                                    String pPackageName,
                                    List pContextList)
            throws SAXException

generateJaxbProperties

public void generateJaxbProperties(SchemaSG pController)
            throws SAXException
Specified by:
generateJaxbProperties in interface SchemaSGChain

getCollectionType

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

getConfigFile

public Document getConfigFile(SchemaSG pController,
                              String pPackageName,
                              List pContextList)
            throws SAXException
Specified by:
getConfigFile in interface SchemaSGChain

getElement

public ObjectSG getElement(SchemaSG pController,
                           XsQName pName)
            throws SAXException
Specified by:
getElement in interface SchemaSGChain

getElements

public ObjectSG[] getElements(SchemaSG pController)
            throws SAXException
Specified by:
getElements in interface SchemaSGChain

getFactory

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

getGroup

public GroupSG getGroup(SchemaSG pController,
                        XsQName pName)
            throws SAXException
Specified by:
getGroup in interface SchemaSGChain

getGroups

public GroupSG[] getGroups(SchemaSG pController)
            throws SAXException
Specified by:
getGroups in interface SchemaSGChain

getJAXBJavaTypes

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

getJavaSourceFactory

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

getLocator

public Locator getLocator(SchemaSG pController)
Specified by:
getLocator in interface SchemaSGChain

getObjectFactory

protected JavaSource getObjectFactory(SchemaSG pController,
                                      String pPackageName,
                                      List pContextList)
            throws SAXException

getObjects

public ObjectSG[] getObjects(SchemaSG pController)
            throws SAXException
Specified by:
getObjects in interface SchemaSGChain

getSchema

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

getType

public TypeSG getType(SchemaSG pController,
                      XsQName pName)
            throws SAXException
Specified by:
getType in interface SchemaSGChain

getTypes

public TypeSG[] getTypes(SchemaSG pController)
            throws SAXException
Specified by:
getTypes in interface SchemaSGChain

getTypesafeEnumBase

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

getXSSchema

protected XSSchema getXSSchema()

init

public void init(SchemaSG pController)
            throws SAXException
Specified by:
init in interface SchemaSGChain

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

isFixedAttributeConstantProperty

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

isGeneratingIsSetMethod

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

isJavaNamingConventionsEnabled

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

isUnderscoreWordSeparator

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