|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
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 String |
m_sStr
|
protected Integer |
m_value
|
Constructor Summary | |
---|---|
EnumElement(Class enumClass,
com.compoze.collab.resource.ResourceBundleWrapper rb,
com.compoze.collab.resource.ResourceKey rk,
int iValue,
float fSortValue,
String sStr)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Object obj)
|
boolean |
equals(Object o)
Equals. |
String |
getDisplayName(Locale locale)
Gets the display name of the element in a particular display locale. |
CollabEnum |
getEnumeration()
Gets the enumeration. |
Integer |
getIntegerValue()
Gets the value. |
int |
getIntValue()
Gets the value. |
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 Object |
readResolve()
Resolves the object during de-serialization. |
String |
toString()
Creates a string representation of the element. |
void |
updateDigest(MessageDigest digest)
Updates the specified MessageDigest with the object's internal state. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int m_iValue
protected transient Integer m_value
protected transient String m_sStr
Constructor Detail |
---|
public EnumElement(Class enumClass, com.compoze.collab.resource.ResourceBundleWrapper rb, com.compoze.collab.resource.ResourceKey rk, int iValue, float fSortValue, String sStr)
Method Detail |
---|
public boolean isDefault()
public int getIntValue()
public Integer getIntegerValue()
public String getString()
public String getDisplayName(Locale locale)
public int compareTo(Object obj)
compareTo
in interface Comparable
public CollabEnum getEnumeration()
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
public boolean equals(Object o)
equals
in class Object
true
if the enum elements are equal (the class of
the enums and their int values are equal)public String toString()
toString
in class Object
null
)public void updateDigest(MessageDigest digest)
IDigestSupport
updateDigest
in interface IDigestSupport
digest
- the digest to update (not null
)
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |