Hi,
I would like to know if I can create a DropDownChoice where the value to be
displayed in the drop down list corresponds to the description of my
enumeration (e.g. Accepted) while the value to be returned is the value
defined in the enumeration (e.g: ACCPT) ?
public enum ProcessingStatusType {
NEW ("NEW", "New"),
ACCEPTED ("ACCPT", "Accepted"),
VALIDATED ("VALID", "Validated"),
TRANSFORMED("TRFRM", "Transformed"),
TRANSFERRED("TRFRD", "Transferred"),
REJECTED("REJEC", "Rejected"),
FAILED("FAIL", "Failed");
private final String value;
private final String description;
ProcessingStatusType( String value, String description ) {
this.value = value;
this.description = description;
}
Regards,
Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer
*****************************
blog : http://cmoulliard.blogspot.com