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

Class SchemaSGImpl

Implemented Interfaces:
SchemaSG, SGItem

public class SchemaSGImpl
extends java.lang.Object
implements SchemaSG, SGItem

Constructor Summary

SchemaSGImpl(SchemaSGChain o)

Method Summary

void
generate()
void
generateJaxbProperties()
String
getCollectionType()
Document
getConfigFile(String pPackageName, List pContextList)
ObjectSG
getElement(XsQName pName)
ObjectSG[]
getElements()
SGFactory
getFactory()
Returns the factory that created this item.
GroupSG
getGroup(XsQName pName)
GroupSG[]
getGroups()
SchemaSGChain
getHeadOfChain()
JAXBJavaType[]
getJAXBJavaTypes()
JavaSourceFactory
getJavaSourceFactory()
Locator
getLocator()
Returns the items location in the schema; useful for error messages.
ObjectSG[]
getObjects()
SchemaSG
getSchema()
Returns the items schema.
TypeSG
getType(XsQName pName)
TypeSG[]
getTypes()
XsQName[]
getTypesafeEnumBase()
void
init()
Initializes the item.
boolean
isBindingStyleModelGroup()
boolean
isChoiceContentProperty()
boolean
isFailFastCheckEnabled()
boolean
isFixedAttributeConstantProperty()
boolean
isGeneratingIsSetMethod()
boolean
isJavaNamingConventionsEnabled()
boolean
isUnderscoreWordSeparator()

Constructor Details

SchemaSGImpl

public SchemaSGImpl(SchemaSGChain o)

Method Details

generate

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

generateJaxbProperties

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

getCollectionType

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

getConfigFile

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

getElement

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

getElements

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

getFactory

public SGFactory getFactory()
Returns the factory that created this item.
Specified by:
getFactory in interface SGItem

getGroup

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

getGroups

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

getHeadOfChain

public SchemaSGChain getHeadOfChain()

getJAXBJavaTypes

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

getJavaSourceFactory

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

getLocator

public Locator getLocator()
Returns the items location in the schema; useful for error messages.
Specified by:
getLocator in interface SGItem

getObjects

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

getSchema

public SchemaSG getSchema()
Returns the items schema.
Specified by:
getSchema in interface SGItem

getType

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

getTypes

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

getTypesafeEnumBase

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

init

public void init()
            throws SAXException
Initializes the item.
Specified by:
init in interface SGItem

isBindingStyleModelGroup

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

isChoiceContentProperty

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

isFailFastCheckEnabled

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

isFixedAttributeConstantProperty

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

isGeneratingIsSetMethod

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

isJavaNamingConventionsEnabled

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

isUnderscoreWordSeparator

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