[Simple-support] How to provide annotations to the enum classes?
Brought to you by:
niallg
|
From: A K <ak....@gm...> - 2011-09-26 06:28:03
|
Hi I have the below source data. And i want to provide the annotation to the
enum class. When i give, it is throwing an exception. Pls let me know how to
provide the annotations to the enum classes. Thanks in advance.
public class CTSystemData
{ private *STSystemDataVal *val; //
---------------------------attribute type="ST_SystemDataVal" use="required"
name="val"
public STSystemColorVal getVal() {
return val;
}
public void setVal(STSystemColorVal val) {
this.val = val;
}
}
public enum STSystemDataVal {
MENU1("menu1"),
MENU2("menu2"),
MENU3("menu3"),
MENU4("menu4"),
private final String value;
private STSystemDataVal(String value) {
this.value = value;
}
public String xmlValue() {
return value;
}
}
|