com.filenet.rm.bds

Class ConstantObject

  1. java.lang.Object
  2. extended bycom.filenet.rm.bds.ConstantObject
Direct known subclasses:
ConfigItemType, DataType, ErrorCode, ResultItemStatus

  1. public abstract class ConstantObject
  2. extends java.lang.Object
ConstantObject is the abstract base class for all enumerated type classes. Such enumerated type classes are intended to provide similar functionality as the new 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
  1. java.util.List
getEnumeratedList()
Returns a list of the enumerated type members for this type.
  1. int
getIntValue()
Returns the enumerated type's int representation.
  1. java.lang.String
getLocalizedStringValue()
Returns the enumerated type's localized String representation based upon the default Locale.
  1. java.lang.String
getLocalizedStringValue(java.util.Locale locale)
Returns the enumerated type's localized String representation based upon the specified Locale.
  1. java.lang.String
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

  1. public int getIntValue()
Returns the enumerated type's int representation.
Returns:
the int representation.

getStringValue

  1. public java.lang.String getStringValue( )
Returns the enumerated type's non-localized String representation.
Returns:
the String representation.

getLocalizedStringValue

  1. public java.lang.String getLocalizedStringValue( )
Returns the enumerated type's localized String representation based upon the default Locale.
Returns:
the localized String representation.

getLocalizedStringValue

  1. 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

  1. public java.util.List getEnumeratedList( )
Returns a list of the enumerated type members for this type.
Returns:
a List of enumberated type members.