com.ibm.pdp.maf.rpp.pac.common

Enum CenturySystemDateValues

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CenturySystemDateValues>


    public enum CenturySystemDateValues
    extends java.lang.Enum<CenturySystemDateValues>

    List of values for treatment of century into generated system date.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      _C 
      _N 
      _W 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static CenturySystemDateValues valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CenturySystemDateValues[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • _C

        public static final CenturySystemDateValues _C

        With COBOL II or COBOL 85 compatible with the year 2000.

        Direct retrieval of the system date including the century according to the COBOL capabilities.

      • _N

        public static final CenturySystemDateValues _N

        With COBOL II or COBOL 85.

        This is the default value.

        If the year is smaller than the value entered in the Century reference date field, it is prefixed by 20. If it is greater, it is prefixed by 19

      • _W

        public static final CenturySystemDateValues _W

        With other COBOL languages.

        A value is set for the century as with the N value.

    • Method Detail

      • valueOf

        public static CenturySystemDateValues valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • values

        public static CenturySystemDateValues[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CenturySystemDateValues c : CenturySystemDateValues.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared