@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.限定符和类型 | 可选元素和说明 |
---|---|
java.lang.String[] |
attributes
Specifies the appearance order of the XML attributes within
the generated document.
|
java.lang.String[] |
elements
Specifies the appearance order of the XML elements within the
generated document.
|
public abstract java.lang.String[] elements
public abstract java.lang.String[] attributes