com.filenet.rm.bds
Class ConstantObject
- java.lang.Object
com.filenet.rm.bds.ConstantObject
Direct known subclasses:
- public abstract class ConstantObject
- extends java.lang.Object
enum
data types in Java 1.5. The main purpose of such
is to enforce stricter type safety than would otherwise be available to
simple int
or String
constants.
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getEnumeratedList()
Returns a list of the enumerated type members for this type.
|
|
getIntValue()
Returns the enumerated type's
int representation.
|
|
getLocalizedStringValue()
Returns the enumerated type's localized
String representation
based upon the default Locale .
|
|
getLocalizedStringValue(java.util.Locale locale)
Returns the enumerated type's localized
String representation
based upon the specified Locale .
|
|
getStringValue()
Returns the enumerated type's non-localized
String representation.
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail
getIntValue
- public int getIntValue()
Returns:
the
int
representation. getStringValue
- public java.lang.String getStringValue( )
Returns the enumerated type's non-localized
String
representation.
Returns:
the
String
representation. getLocalizedStringValue
- public java.lang.String getLocalizedStringValue( )
Returns the enumerated type's localized
String
representation
based upon the default Locale
.
Returns:
the localized
String
representation. getLocalizedStringValue
- public java.lang.String getLocalizedStringValue( java.util.Locale locale)
Returns the enumerated type's localized
String
representation
based upon the specified Locale
.
Parameters:
locale
- the Locale
to base the localized String
representation upon. Returns:
the localized
String
representation. getEnumeratedList
- public java.util.List getEnumeratedList( )
Returns a list of the enumerated type members for this type.
Returns:
a
List
of enumberated type members.
int
representation.