Added fancy name
This commit is contained in:
parent
c57ff70f3d
commit
3a7a908f66
|
@ -23,15 +23,21 @@ public enum CMItemStatus {
|
|||
}
|
||||
|
||||
protected final String value;
|
||||
protected final String fancyValue;
|
||||
|
||||
private CMItemStatus(String value) {
|
||||
this.value = value;
|
||||
this.fancyValue = Character.toUpperCase(value.charAt(0)) + value.substring(1);
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getFancyValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static CMItemStatus getCMItemStatusFromValue(String value) {
|
||||
return CM_ITEM_STATUS_FROM_VALUE.get(value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue