|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.collab.EnumElement
public class EnumElement
This class is an enumeration element. Each CollabEnum
holds a list
of EnumElement
s.
Field Summary | |
---|---|
protected int |
m_iValue
|
protected java.lang.String |
m_sStr
|
protected java.lang.Integer |
m_value
|
Constructor Summary | |
---|---|
EnumElement(java.lang.Class enumClass,
com.compoze.collab.resource.ResourceBundleWrapper rb,
com.compoze.collab.resource.ResourceKey rk,
int iValue,
float fSortValue,
java.lang.String sStr)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
Equals. |
java.lang.String |
getDisplayName(java.util.Locale locale)
Gets the display name of the element in a particular display locale. |
CollabEnum |
getEnumeration()
Gets the enumeration. |
java.lang.Integer |
getIntegerValue()
Gets the value. |
int |
getIntValue()
Gets the value. |
java.lang.String |
getString()
Gets the non-localized string for the enum. |
boolean |
isDefault()
Determines if this is the default enum element (in its top level enumeration only). |
protected java.lang.Object |
readResolve()
Resolves the object during de-serialization. |
java.lang.String |
toString()
Creates a string representation of the element. |
void |
updateDigest(java.security.MessageDigest digest)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int m_iValue
protected transient java.lang.Integer m_value
protected transient java.lang.String m_sStr
Constructor Detail |
---|
public EnumElement(java.lang.Class enumClass, com.compoze.collab.resource.ResourceBundleWrapper rb, com.compoze.collab.resource.ResourceKey rk, int iValue, float fSortValue, java.lang.String sStr)
Method Detail |
---|
public boolean isDefault()
public int getIntValue()
public java.lang.Integer getIntegerValue()
public java.lang.String getString()
public java.lang.String getDisplayName(java.util.Locale locale)
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public CollabEnum getEnumeration()
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
if the enum elements are equal (the class of
the enums and their int values are equal)public java.lang.String toString()
toString
in class java.lang.Object
null
)public void updateDigest(java.security.MessageDigest digest)
updateDigest
in interface com.compoze.collab.util.IDigestSupport
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |