@Retention(value=RUNTIME) public @interface Order
Order
annotation is used to specify the order of
appearance of XML elements and attributes. When used it ensures
that on serialization the XML generated is predictable. By default
serialization of fields is done in declaration order.Modifier and Type | Optional Element and Description |
---|---|
String[] |
attributes
Specifies the appearance order of the XML attributes within
the generated document.
|
String[] |
elements
Specifies the appearance order of the XML elements within the
generated document.
|
public abstract String[] elements
public abstract String[] attributes