background image

Namespace Declarations

<< JAXB Version Number | Fix Collides Example >>
<< JAXB Version Number | Fix Collides Example >>
58
U
SING
JAXB
<xs:appinfo>
elements, which are in turn embedded in
<xs:annotation>
ele-
ments. Embedding declarations in this way is unnecessary in the external bind-
ings file.
<jxb:globalBindings
fixedAttributeAsConstantProperty="true"
collectionType="java.util.Vector"
typesafeEnumBase="xs:NCName"
choiceContentProperty="false"
typesafeEnumMemberName="generateError"
bindingStyle="elementBinding"
enableFailFastCheck="false"
generateIsSetMethod="false"
underscoreBinding="asCharInWord"/>
<jxb:schemaBindings>
<jxb:package name="primer.myPo">
<jxb:javadoc><![CDATA[<body>Package level
documentation for generated package primer.myPo.</body>]]>
</jxb:javadoc>
</jxb:package>
<jxb:nameXmlTransform>
<jxb:elementName suffix="Element"/>
</jxb:nameXmlTransform>
</jxb:schemaBindings>
By comparison, the syntax used in
po.xsd
for the Datatype Converter example
is:
<xsd:annotation>
<xsd:appinfo>
<jxb:globalBindings
.
<binding_declarations>
.
<jxb:schemaBindings>
.
<binding_declarations>
.
</jxb:schemaBindings>
</xsd:appinfo>
</xsd:annotation>