|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filterandrank.PropertyLabelEnum
public class PropertyLabelEnum
Typesafe Enum class to represent a constant that has a localized property associated with it.
Constructor Summary | |
---|---|
protected |
PropertyLabelEnum(java.lang.String name,
java.lang.String propertyKey)
Creates a new Enum instance with the given name and property key. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
protected static PropertyLabelEnum |
findType(java.util.List types,
java.lang.String name)
Convenience method for subclasses who must maintain their own private list. |
java.lang.String |
getLabel(java.util.Locale locale)
Returns the localized property for this enum. |
java.lang.String |
getLabel(com.sas.util.RBBase rb,
java.util.Locale locale)
Returns the localized property for this enum. |
java.lang.String |
getName()
Returns the internal name for this enum. |
java.lang.String |
getPropertyKey()
Returns the property key for this enum. |
int |
hashCode()
|
java.lang.String |
toString()
Returns the internally used textual representation of the enum. |
Constructor Detail |
---|
protected PropertyLabelEnum(java.lang.String name, java.lang.String propertyKey)
name
- the internal name for this enumpropertyKey
- the property key to use when retrieving the resourceMethod Detail |
---|
public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String getName()
public java.lang.String getPropertyKey()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLabel(java.util.Locale locale)
locale
- the locale to use when getting the resource property
public java.lang.String getLabel(com.sas.util.RBBase rb, java.util.Locale locale)
rb
- the resource bundle util class to use when getting the resource propertylocale
- the locale to use when getting the resource property
protected static PropertyLabelEnum findType(java.util.List types, java.lang.String name)
types
- the list of enums to searchname
- the name of the desired enum
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |