com.filenet.rm.bds

Class ConstantObject

  • java.lang.Object
    • com.filenet.rm.bds.ConstantObject
  • Direct Known Subclasses:
    ConfigItemType, DataType, ErrorCode, ResultItemStatus


    public abstract class ConstantObject
    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

      Methods 
      Modifier and Type Method and Description
      java.util.List getEnumeratedList()
      Returns a list of the enumerated type members for this type.
      int getIntValue()
      Returns the enumerated type's int representation.
      java.lang.String getLocalizedStringValue()
      Returns the enumerated type's localized String representation based upon the default Locale.
      java.lang.String getLocalizedStringValue(java.util.Locale locale)
      Returns the enumerated type's localized String representation based upon the specified Locale.
      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

        public int getIntValue()
        Returns the enumerated type's int representation.
        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.

© Copyright IBM Corp. 2006, 2013. All Rights Reserved.