Enum Report.Block

  • All Implemented Interfaces:
    Serializable, Comparable<Report.Block>
    Enclosing class:
    Report

    protected static enum Report.Block
    extends Enum<Report.Block>
    A report is made up of a HEADER, BODY, then FOOTER. The BODY is then made up of a series of LABELs. The different formats should use the state changes for format specific tasks such as creating or closing subelements. Flushing of the writer is done in this portion of the code to enforce consistent behavior.
    • Method Detail

      • values

        public static Report.Block[] 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 (Report.Block c : Report.Block.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Report.Block valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null