|
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.PriorityEnum
The PriorityEnum class handles enumeration of item's priorities.
| Field Summary | |
static PriorityEnum |
HIGH
This indicates "HIGH" priority. |
static PriorityEnum |
LOW
This indicates "LOW" priority. |
static PriorityEnum |
NORMAL
This indicates "NORMAL" priority. |
protected static String |
RESOURCE_PREFIX
|
static PriorityEnum |
UNDEFINED
This stands for the priority that is not defined. |
static PriorityEnum |
VERYHIGH
This indicates "VERYHIGH" priority. |
| Method Summary | |
int |
compareTo(Object arg)
This method compares the priorities based on this and arg.
|
boolean |
equals(Object obj)
|
static PriorityEnum |
getEnumFromInt(int val)
|
static PriorityEnum |
getEnumFromKey(String key)
|
static Iterator |
getIterator()
|
String |
getKey()
|
String |
getText()
Returns the readable text like "VERYHIGH","HIGH" etc. |
String |
getText(Locale locale)
Return the Display text for this enum type. |
int |
getValue()
|
int |
hashCode()
|
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 PriorityEnum UNDEFINED
public static final PriorityEnum LOW
public static final PriorityEnum NORMAL
public static final PriorityEnum HIGH
public static final PriorityEnum VERYHIGH
| Method Detail |
public static Iterator getIterator()
Map.values()public int hashCode()
value.Object.hashCode()public int getValue()
public String getKey()
public String getText()
public String getText(Locale locale)
locale - - Locale can be null in which the default locale will be used.
public String toString()
Object.toString()public boolean equals(Object obj)
obj - the object that needs to be compared against "this".
Object.equals(java.lang.Object)public static PriorityEnum getEnumFromInt(int val)
val - the value of priority in the form of an integer.
MAX, returns UNDEFINED but not null.public static PriorityEnum getEnumFromKey(String key)
key - that specifies the priority.
UNDEFINED.public int compareTo(Object arg)
this and arg.
If arg is not an instance of PriorityEnum,
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 arg.value.
Similarly, returns -1 if it is other way round.
Returns 0 if they are equal or if arg is not an instance of PriorityEnum.Comparable.compareTo(java.lang.Object)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||