public enum FormatOption extends Enum<FormatOption>
| Enum Constant and Description |
|---|
MRR
Output in
MachineReadableReport XML format |
TEXT
Output in brief format
|
XML
Output in XML format
|
| Modifier and Type | Method and Description |
|---|---|
static FormatOption |
fromOption(String option)
Performs a match against the parameter
String option of each
FormatType's option and returns a matching instance. |
String |
getOption() |
String |
toString() |
static FormatOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FormatOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatOption XML
public static final FormatOption MRR
MachineReadableReport XML formatpublic static final FormatOption TEXT
public static FormatOption[] values()
for (FormatOption c : FormatOption.values()) System.out.println(c);
public static FormatOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getOption()
FormatType instance.public String toString()
toString in class Enum<FormatOption>public static FormatOption fromOption(String option)
String option of each
FormatType's option and returns a matching instance. Defaults to
returning XML if no match can be made.option - the string CLI option to compareFormatType instance or XML if no match
can be made.Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.