Re: [Simple-support] How to provide annotations to the enum classes?
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-10-08 03:23:31
|
Use a Transformer for Enums
________________________________
From: A K <ak....@gm...>
To: sim...@li...
Sent: Monday, 26 September 2011 7:27 AM
Subject: [Simple-support] How to provide annotations to the enum classes?
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;
}
}
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support |