In previous articles I wrote about how the @XmlTransient annotation can be used at the type level to have a class excluded from the inheritance hierarchy, or at the field/property level to unmap a field/property. In this article I'll demonstrate how doing this impacts the propOrder setting on the @XmlType annotation.
Showing posts with label XmlType. Show all posts
Showing posts with label XmlType. Show all posts
August 11, 2012
JAXB's @XmlTransient and Property Order
February 9, 2012
JAXB's @XmlType and propOrder
In this post I will demonstrate how to use the propOrder property on the @XmlType annotation to control the ordering of XML elements. I will also discuss the impact of @XmlAccessorType on how propOrder is configured.
Labels:
JAXB,
XmlAccessorType,
XmlAccessType,
XmlType
June 27, 2011
JAXB and Factory Methods
Everyone knows that by default JAXB uses the no-argument constructor when instantiating objects. Readers of this blog are also familiar with using XmlAdapters to build objects. In this post I'll cover how the use of factory classes and methods can be configured through the @XmlType annotation.
August 11, 2010
JAXB & Namespaces
The majority of XML documents are namespace qualified, yet most XML binding examples do not demonstrate namespaces (sometimes because the XML binding solution does not support them). In this post I'll demonstrate how easy namespace handling is using JAXB.
Labels:
JAXB,
Namespaces,
XmlElement,
XmlSchema,
XmlType
Subscribe to:
Posts (Atom)