|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.StatusEnum
The StatusEnum class handles enumeration of task's status.
An item can have any of the following status in UWL
| Field Summary | |
static StatusEnum |
COMPLETED
This indicates whether or not the task is completed. |
static StatusEnum |
EXECUTED
This indicates whether or not the task is executed. |
static StatusEnum |
INPROGRESS
This indicates whether item is in progress. |
static StatusEnum |
NEW
This indicates whether the task is new. |
static StatusEnum |
READ
This indicates whether or not the item is read. |
protected static String |
RESOURCE_PREFIX
|
| Method Summary | |
int |
compareTo(Object arg)
This method compares the status based on this and arg.
|
boolean |
equals(Object arg)
|
static StatusEnum |
getEnumFromInternalValue(String val)
|
static StatusEnum |
getEnumFromText(String text)
|
String |
getInternalValue()
|
String |
getText()
Returns the readable text like "NEW","COMPLETED" etc. |
String |
getText(Locale locale)
Return the Display text for this enum type. |
int |
hashCode()
|
static boolean |
isAllowedInternalValue(String val)
Do note user this method. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final String RESOURCE_PREFIX
public static final StatusEnum NEW
public static final StatusEnum INPROGRESS
public static final StatusEnum EXECUTED
public static final StatusEnum COMPLETED
public static final StatusEnum READ
| Method Detail |
public int hashCode()
value.Object.hashCode()public String getInternalValue()
public String toString()
Object.toString()public static StatusEnum getEnumFromInternalValue(String val)
StatusEnum
with both value and text equal to val.public String getText()
public String getText(Locale locale)
locale - - Locale can be null in which the default locale will be used.
public static StatusEnum getEnumFromText(String text)
text - allowed text e.g. "COMPLETED"
public static boolean isAllowedInternalValue(String val)
val - '0' or '1' etc.
public int compareTo(Object arg)
this and arg.
If arg is not an instance of StatusEnum,
this method returns 0 indicating equality instead of throwing ClassCastException.
compareTo in interface Comparablearg - the object that needs to be compared against this.
this.value is greater than (string comparison) arg.value.
Similarly, returns -1 if it is other way around.
Returns 0 if they are equal or if arg is not an instance of StatusEnum.Comparable.compareTo(java.lang.Object)public boolean equals(Object arg)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||