background image

Class Binding Declarations

<< Schema Binding Declarations | javaType Binding Declarations >>
<< Schema Binding Declarations | javaType Binding Declarations >>
44
U
SING
JAXB
·
<nameXmlTransform>...</nameXmlTransform>
specifies
customiza-
tions to be applied.
Class Binding Declarations
The
<class>
binding declaration enables you to customize the binding of a
schema element to a Java content interface or a Java
Element
interface.
<class>
declarations can be used to customize:
· A name for a schema-derived Java interface
· An implementation class for a schema-derived Java content interface.
The syntax for
<class>
customizations is:
<class [ name = "className"]
[ implClass= "implClass" ] >
[ <javadoc> ... </javadoc> ]
</class>
·
name
is the name of the derived Java interface. It must be a legal Java inter-
face 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 cus-
tomization 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>