org.apache.ws.jaxme.xs.jaxb.impl

Class JAXBGlobalBindingsImpl

Implemented Interfaces:
JAXBGlobalBindings, XsObject
Known Direct Subclasses:
JaxMeSchemaReader.JaxMeGlobalBindingsImpl

public class JAXBGlobalBindingsImpl
extends XsObjectImpl
implements JAXBGlobalBindings

Author:
Jochen Wiedmann

Constructor Summary

JAXBGlobalBindingsImpl(XsObject pParent)
Creates a new instance of JAXBGlobalBindingsImpl.

Method Summary

JAXBJavaType
createJavaType()
protected XsObject
getBeanByParent(XsObject pParent, Locator pLocator, XsQName pQName)
ContentHandler
getChildHandler(String pQName, String pNamespaceURI, String pLocalName)
String
getCollectionType()
Returns the collection type; either of null ("indexed", default) or an implementation of java.util.List.
JAXBJavaType.JAXBGlobalJavaType[]
getJavaType()
Returns the list of javaType declarations.
XsQName[]
getTypesafeEnumBase()
Returns a list of QNames, which are being implemented as type safe enumerations, if the xs:enumeration facet is used.
JAXBGlobalBindings.UnderscoreBinding
getUnderscoreBinding()
Returns the binding of underscores.
protected XsObjectCreator[]
getXsObjectCreators()
boolean
isBindingStyleModelGroup()
Returns whether the elementBinding style is being used (true, default) or not.
boolean
isChoiceContentProperty()
Returns the choiceContentProperty value.
boolean
isEnableFailFastCheck()
Returns whether FailFastCheck is enabled.
boolean
isEnableJavaNamingConventions()
Returns whether Java naming conventions are enabled.
boolean
isFixedAttributeAsConstantProperty()
Returns whether fixed attributes are implemented as a constant property.
boolean
isGenerateIsSetMethod()
Returns whether a isSet() method is being generated.
protected boolean
isPrefixEnabled(String pPrefix)
boolean
isTypesafeEnumMemberName()
Returns whether the typesafeEnumMemberName generates an error (false, default) or a name.
void
setBindingStyle(String pBindingStyle)
void
setChoiceContentProperty(boolean pChoiceContentProperty)
void
setCollectionType(String pType)
void
setEnableFailFastCheck(boolean pEnableFailFastCheck)
void
setEnableJavaNamingConventions(boolean pEnableJavaNamingConventions)
void
setFixedAttributeAsConstantProperty(boolean pFixedAttributeAsConstantProperty)
void
setGenerateIsSetMethod(boolean pGenerateIsSetMethod)
void
setTypesafeEnumBase(String pTypesafeEnumBase)
void
setTypesafeEnumBase(XsQName[] pTypes)
void
setTypesafeEnumMemberName(boolean pTypesafeEnumMemberName)
void
setUnderscoreBinding(JAXBGlobalBindings.UnderscoreBinding pUnderscoreBinding)

Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl

asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate

Constructor Details

JAXBGlobalBindingsImpl

protected JAXBGlobalBindingsImpl(XsObject pParent)
Creates a new instance of JAXBGlobalBindingsImpl.

Method Details

createJavaType

public JAXBJavaType createJavaType()

getBeanByParent

protected XsObject getBeanByParent(XsObject pParent,
                                   Locator pLocator,
                                   XsQName pQName)
            throws SAXException

getChildHandler

public ContentHandler getChildHandler(String pQName,
                                      String pNamespaceURI,
                                      String pLocalName)
            throws SAXException

getCollectionType

public String getCollectionType()
Returns the collection type; either of null ("indexed", default) or an implementation of java.util.List.
Specified by:
getCollectionType in interface JAXBGlobalBindings

getJavaType

public JAXBJavaType.JAXBGlobalJavaType[] getJavaType()
Returns the list of javaType declarations.
Specified by:
getJavaType in interface JAXBGlobalBindings

getTypesafeEnumBase

public XsQName[] getTypesafeEnumBase()
Returns a list of QNames, which are being implemented as type safe enumerations, if the xs:enumeration facet is used. Defaults to xs:NCName (single element list).
Specified by:
getTypesafeEnumBase in interface JAXBGlobalBindings

getUnderscoreBinding

public JAXBGlobalBindings.UnderscoreBinding getUnderscoreBinding()
Returns the binding of underscores. Defaults to "asWordSeparator" (false). The value true indicates "asCharInWord".
Specified by:
getUnderscoreBinding in interface JAXBGlobalBindings

getXsObjectCreators

protected XsObjectCreator[] getXsObjectCreators()

isBindingStyleModelGroup

public boolean isBindingStyleModelGroup()
Returns whether the elementBinding style is being used (true, default) or not.
Specified by:
isBindingStyleModelGroup in interface JAXBGlobalBindings

isChoiceContentProperty

public boolean isChoiceContentProperty()
Returns the choiceContentProperty value. Defaults to false. This value is ignored, if bindingStyle is defined as elementBinding. In this case, setting choiceContentProperty is an error. Defaults to false.
Specified by:
isChoiceContentProperty in interface JAXBGlobalBindings

isEnableFailFastCheck

public boolean isEnableFailFastCheck()
Returns whether FailFastCheck is enabled. Defaults to false.
Specified by:
isEnableFailFastCheck in interface JAXBGlobalBindings

isEnableJavaNamingConventions

public boolean isEnableJavaNamingConventions()
Returns whether Java naming conventions are enabled. Defaults to true.
Specified by:
isEnableJavaNamingConventions in interface JAXBGlobalBindings

isFixedAttributeAsConstantProperty

public boolean isFixedAttributeAsConstantProperty()
Returns whether fixed attributes are implemented as a constant property. Defaults to false.
Specified by:
isFixedAttributeAsConstantProperty in interface JAXBGlobalBindings

isGenerateIsSetMethod

public boolean isGenerateIsSetMethod()
Returns whether a isSet() method is being generated. Defaults to false.
Specified by:
isGenerateIsSetMethod in interface JAXBGlobalBindings

isPrefixEnabled

protected boolean isPrefixEnabled(String pPrefix)

isTypesafeEnumMemberName

public boolean isTypesafeEnumMemberName()
Returns whether the typesafeEnumMemberName generates an error (false, default) or a name.
Specified by:
isTypesafeEnumMemberName in interface JAXBGlobalBindings

setBindingStyle

public void setBindingStyle(String pBindingStyle)
            throws SAXException

setChoiceContentProperty

public void setChoiceContentProperty(boolean pChoiceContentProperty)

setCollectionType

public void setCollectionType(String pType)

setEnableFailFastCheck

public void setEnableFailFastCheck(boolean pEnableFailFastCheck)

setEnableJavaNamingConventions

public void setEnableJavaNamingConventions(boolean pEnableJavaNamingConventions)

setFixedAttributeAsConstantProperty

public void setFixedAttributeAsConstantProperty(boolean pFixedAttributeAsConstantProperty)

setGenerateIsSetMethod

public void setGenerateIsSetMethod(boolean pGenerateIsSetMethod)

setTypesafeEnumBase

public void setTypesafeEnumBase(String pTypesafeEnumBase)
            throws SAXException

setTypesafeEnumBase

public void setTypesafeEnumBase(XsQName[] pTypes)

setTypesafeEnumMemberName

public void setTypesafeEnumMemberName(boolean pTypesafeEnumMemberName)

setUnderscoreBinding

public void setUnderscoreBinding(JAXBGlobalBindings.UnderscoreBinding pUnderscoreBinding)