prev table of contents next

6.2.2 Annotation for Classes: XmlType

This annotation adds information that would be available from a schema type, but isn't implied by a Java class declaration. The annotation has several attributes:

Here is an example for XmlType, requesting that the elements title, items and cluster should appear in the given order:
@XmlRootElement
@XmlType( propOrder={ "title", "items", "cluster" } )
public class Document {
    ...
}


prev table of contents next