net.sf.jaxme.xs.jaxb.impl
Class JAXBGlobalBindingsImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.xml.impl.XsObjectImpl
      extended bynet.sf.jaxme.xs.jaxb.impl.JAXBGlobalBindingsImpl
All Implemented Interfaces:
JAXBGlobalBindings, XsObject

public class JAXBGlobalBindingsImpl
extends XsObjectImpl
implements JAXBGlobalBindings

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes inherited from class net.sf.jaxme.xs.jaxb.JAXBGlobalBindings
JAXBGlobalBindings.UnderscoreBinding
 
Constructor Summary
protected JAXBGlobalBindingsImpl(XsObject pParent)
          Creates a new instance of JAXBGlobalBindingsImpl.
 
Method Summary
 JAXBJavaType createJavaType()
           
 org.xml.sax.ContentHandler getChildHandler(java.lang.String pQName, java.lang.String pNamespaceURI, java.lang.String pLocalName)
           
 java.lang.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.
 boolean isBindingStyle()
          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.
 boolean isTypesafeEnumMemberName()
          Returns whether the typesafeEnumMemberName generates an error (false, default) or a name.
 void setBindingStyle(boolean pBindingStyle)
           
 void setChoiceContentProperty(boolean pChoiceContentProperty)
           
 void setCollectionType(java.lang.String pType)
           
 void setEnableFailFastCheck(boolean pEnableFailFastCheck)
           
 void setEnableJavaNamingConventions(boolean pEnableJavaNamingConventions)
           
 void setFixedAttributeAsConstantProperty(boolean pFixedAttributeAsConstantProperty)
           
 void setGenerateIsSetMethod(boolean pGenerateIsSetMethod)
           
 void setTypesafeEnumBase(java.lang.String pTypesafeEnumBase)
           
 void setTypesafeEnumBase(XsQName[] pTypes)
           
 void setTypesafeEnumMemberName(boolean pTypesafeEnumMemberName)
           
 void setUnderscoreBinding(JAXBGlobalBindings.UnderscoreBinding pUnderscoreBinding)
           
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsObjectImpl
asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBGlobalBindingsImpl

protected JAXBGlobalBindingsImpl(XsObject pParent)

Creates a new instance of JAXBGlobalBindingsImpl.

Method Detail

setCollectionType

public void setCollectionType(java.lang.String pType)

getCollectionType

public java.lang.String getCollectionType()
Description copied from interface: JAXBGlobalBindings

Returns the collection type; either of null ("indexed", default) or an implementation of java.util.List.

Specified by:
getCollectionType in interface JAXBGlobalBindings

setFixedAttributeAsConstantProperty

public void setFixedAttributeAsConstantProperty(boolean pFixedAttributeAsConstantProperty)

isFixedAttributeAsConstantProperty

public boolean isFixedAttributeAsConstantProperty()
Description copied from interface: JAXBGlobalBindings

Returns whether fixed attributes are implemented as a constant property. Defaults to false.

Specified by:
isFixedAttributeAsConstantProperty in interface JAXBGlobalBindings

setGenerateIsSetMethod

public void setGenerateIsSetMethod(boolean pGenerateIsSetMethod)

isGenerateIsSetMethod

public boolean isGenerateIsSetMethod()
Description copied from interface: JAXBGlobalBindings

Returns whether a isSet() method is being generated. Defaults to false.

Specified by:
isGenerateIsSetMethod in interface JAXBGlobalBindings

setEnableFailFastCheck

public void setEnableFailFastCheck(boolean pEnableFailFastCheck)

isEnableFailFastCheck

public boolean isEnableFailFastCheck()
Description copied from interface: JAXBGlobalBindings

Returns whether FailFastCheck is enabled. Defaults to false.

Specified by:
isEnableFailFastCheck in interface JAXBGlobalBindings

setChoiceContentProperty

public void setChoiceContentProperty(boolean pChoiceContentProperty)

isChoiceContentProperty

public boolean isChoiceContentProperty()
Description copied from interface: JAXBGlobalBindings

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

setUnderscoreBinding

public void setUnderscoreBinding(JAXBGlobalBindings.UnderscoreBinding pUnderscoreBinding)

getUnderscoreBinding

public JAXBGlobalBindings.UnderscoreBinding getUnderscoreBinding()
Description copied from interface: JAXBGlobalBindings

Returns the binding of underscores. Defaults to "asWordSeparator" (false). The value true indicates "asCharInWord".

Specified by:
getUnderscoreBinding in interface JAXBGlobalBindings

setEnableJavaNamingConventions

public void setEnableJavaNamingConventions(boolean pEnableJavaNamingConventions)

isEnableJavaNamingConventions

public boolean isEnableJavaNamingConventions()
Description copied from interface: JAXBGlobalBindings

Returns whether Java naming conventions are enabled. Defaults to true.

Specified by:
isEnableJavaNamingConventions in interface JAXBGlobalBindings

setTypesafeEnumBase

public void setTypesafeEnumBase(XsQName[] pTypes)

setTypesafeEnumBase

public void setTypesafeEnumBase(java.lang.String pTypesafeEnumBase)
                         throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getTypesafeEnumBase

public XsQName[] getTypesafeEnumBase()
Description copied from interface: JAXBGlobalBindings

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

setTypesafeEnumMemberName

public void setTypesafeEnumMemberName(boolean pTypesafeEnumMemberName)

isTypesafeEnumMemberName

public boolean isTypesafeEnumMemberName()
Description copied from interface: JAXBGlobalBindings

Returns whether the typesafeEnumMemberName generates an error (false, default) or a name.

Specified by:
isTypesafeEnumMemberName in interface JAXBGlobalBindings

setBindingStyle

public void setBindingStyle(boolean pBindingStyle)

isBindingStyle

public boolean isBindingStyle()
Description copied from interface: JAXBGlobalBindings

Returns whether the elementBinding style is being used (true, default) or not.

Specified by:
isBindingStyle in interface JAXBGlobalBindings

createJavaType

public JAXBJavaType createJavaType()

getJavaType

public JAXBJavaType.JAXBGlobalJavaType[] getJavaType()
Description copied from interface: JAXBGlobalBindings

Returns the list of javaType declarations.

Specified by:
getJavaType in interface JAXBGlobalBindings

getChildHandler

public org.xml.sax.ContentHandler getChildHandler(java.lang.String pQName,
                                                  java.lang.String pNamespaceURI,
                                                  java.lang.String pLocalName)
                                           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException