Annotation Interface XmlEnumDefaultValue


@Retention(RUNTIME) public @interface XmlEnumDefaultValue
Uses the selected default value in case there is no match. Example: Assuming the following XML input and class definitions
 
     <pojo><value>three</value></pojo>
 
 
     class Pojo {
         MyEnum value;
     }

     enum MyEnum {
         one,
         \@XmlEnumDefaultValue
         two
     }
 
 
Will deserialize into an object with value 'two' for the field value. This annotation has no effect during serialization.