background image

Property Binding Declarations

<< Schema Binding Declarations | javaType Binding Declarations >>
<< Schema Binding Declarations | javaType Binding Declarations >>

Property Binding Declarations

[ <javadoc> ... </javadoc> ]
</class>
name
is the name of the derived Java interface. It must be a legal Java interface name and
must not contain a package prefix. The package prefix is inherited from the current value of
package.
implClass
is the name of the implementation class for className and must include the
complete package name.
The <javadoc> element specifies the Javadoc tool annotations for the schema-derived Java
interface. The string entered here must use CDATA or < to escape embedded HTML tags.
Property Binding Declarations
The <property> binding declaration enables you to customize the binding of an XML schema
element to its Java representation as a property. The scope of customization can either be at the
definition level or component level depending upon where the <property> binding declaration
is specified.
The syntax for <property> customizations is:
<property
[ name =
"propertyName"]
[ collectionType =
"propertyCollectionType" ]
[ fixedAttributeAsConstantProperty =
"true" | "false" | "1" | "0" ]
[ generateIsSetMethod =
"true" | "false" | "1" | "0" ]
[ enableFailFastCheck =
"true" | "false" | "1" | "0" ]
[ <baseType> ... </baseType> ]
[ <javadoc> ... </javadoc> ]
</property>
<baseType>
<javaType> ... </javaType>
</baseType>
name
defines the customization value propertyName; it must be a legal Java identifier.
collectionType
defines the customization value propertyCollectionType, which is the
collection type for the property. propertyCollectionType. If specified, can be either
indexed
or any fully-qualified class name that implements java.util.List.
fixedAttributeAsConstantProperty
defines the customization value
fixedAttributeAsConstantProperty
. The value can be either true, false, 1, or 0.
generateIsSetMethod
defines the customization value of generateIsSetMethod. The value
can be either true, false, 1, or 0.
enableFailFastCheck
defines the customization value enableFailFastCheck. The value
can be either true, false, 1, or 0. Please note that the JAXB implementation does not
support failfast validation.
Customizing JAXB Bindings
The Java EE 5 Tutorial · September 2007
522