background image

Global Binding Declarations

<< Customization Syntax | Schema Binding Declarations >>
<< Customization Syntax | Schema Binding Declarations >>
42
U
SING
JAXB
Global Binding Declarations
Global scope customizations are declared with
<globalBindings>
. The syntax
for global scope customizations is as follows:
<globalBindings>
[ collectionType = "collectionType" ]
[ fixedAttributeAsConstantProperty= "true" | "false" | "1" | "0" ]
[ generateIsSetMethod= "true" | "false" | "1" | "0" ]
[ enableFailFastCheck = "true" | "false" | "1" | "0" ]
[ choiceContentProperty = "true" | "false" | "1" | "0" ]
[ underscoreBinding = "asWordSeparator" | "asCharInWord" ]
[ typesafeEnumBase = "typesafeEnumBase" ]
[ typesafeEnumMemberName = "generateName" | "generateError" ]
[ enableJavaNamingConventions = "true" | "false" | "1" | "0" ]
[ bindingStyle = "elementBinding" | "modelGroupBinding" ]
[ <javaType> ... </javaType> ]*
</globalBindings>
·
collectionType
can be either
indexed
or any fully qualified class name
that implements
java.util.List
.
·
fixedAttributeAsConstantProperty
can be either
true
,
false
,
1
, or
0
.
The default value is
false
.
·
generateIsSetMethod
can be either
true
,
false
,
1
, or
0
. The default
value is
false
.
·
enableFailFastCheck
can be either
true
,
false
,
1
, or
0
. If
enableFail-
FastCheck
is
true
or
1
and the JAXB implementation supports this
optional checking, type constraint checking is performed when setting a
property. The default value is
false
. Please note that the JAXB implemen-
tation does not support failfast validation.
·
choiceContentProperty
can be either
true
,
false
,
1
, or
0
. The default
value is
false
.
choiceContentProperty
is not relevant when the
bind-
ingStyle
is
elementBinding
. Therefore, if
bindingStyle
is specified as
elementBinding
, then the
choiceContentProperty
must result in an
invalid customization.
·
underscoreBinding
can be either
asWordSeparator
or
asCharInWord
.
The default value is
asWordSeparator
.
·
enableJavaNamingConventions
can be either
true
,
false
,
1
, or
0
. The
default value is
true
.
·
typesafeEnumBase
can be a list of QNames, each of which must resolve
to a simple type definition. The default value is
xs:NCName
. See Typesafe