Details
Description
@XmlType(name = "BasicType")
@XmlEnum
public enum BasicType {
@XmlEnumValue("text")
TEXT("text"),
@XmlEnumValue("value")
VALUE("value"),
@XmlEnumValue("numeric")
NUMERIC("numeric"),
@XmlEnumValue("bigNumeric")
BIG_NUMERIC("bigNumeric"),
@XmlEnumValue("date")
DATE("date"),
@XmlEnumValue("boolean")
BOOLEAN("boolean"),
@XmlEnumValue("object")
OBJECT("object"),
@XmlEnumValue("group")
GROUP("group"),
@XmlEnumValue("totalTally")
TOTAL_TALLY("totalTally");
private final String value;
BasicType(String v)
{ value = v; }public String value()
{ return value; } public static BasicType fromValue(String v) {
for (BasicType c: BasicType.values()) {
if (c.value.equals(v))
}
throw new IllegalArgumentException(v);
}
}
this class is a jaxb generated class, qdox parser failed to parse enum constants with annotation, for example @XmlEnumValue("totalTally")
Activity
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 1.9.1 [ 15252 ] | |
Fix Version/s | 1.10 [ 15020 ] | |
Resolution | Fixed [ 1 ] | |
Assignee | Robert Scholte [ rfscholte ] |
Fix Version/s | 1.10 [ 15020 ] | |
Fix Version/s | 1.9.2 [ 15471 ] |
r598 | rfscholte | 2009-05-13 23:29:20 CEST
fix for QDOX/162: support annotations for enum constructors
----------------------------------------------------------------------------