Package gov.nasa.pds.validate.report
Enum Report.Block
- java.lang.Object
-
- java.lang.Enum<Report.Block>
-
- gov.nasa.pds.validate.report.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Report.Block
valueOf(String name)
Returns the enum constant of this type with the specified name.static Report.Block[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BODY
public static final Report.Block BODY
-
FOOTER
public static final Report.Block FOOTER
-
HEADER
public static final Report.Block HEADER
-
LABEL
public static final Report.Block LABEL
-
-
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 nameNullPointerException
- if the argument is null
-
-