Package xmlparser.annotations
Annotation Interface XmlEnumValue
Changes an enum value to some other value. Example:
class Pojo {
MyEnum value;
}
enum MyEnum {
one,
\@XmlEnumValue("123")
two
}
The above POJO with 'value' set to 'one' will serialize into
<pojo><value>one</value></pojo>
The same POJO with 'value' set to 'two' will serialize into
<pojo><value>123</value></pojo>
This annotation is also respected during deserialization.-
Required Element Summary
Required Elements
-
Element Details
-
value
String value
-