private static enum RenderingCLI.Option extends java.lang.Enum<RenderingCLI.Option>
Enum Constant and Description |
---|
ANCHOR |
BOUNDS |
DEBUG |
HEIGHT_M |
HEIGHT_PX |
HELP |
INPUT |
MAX_IMAGE_SIZE |
OUTPUT |
PROJECTION |
SCALE |
SETTING |
STYLE |
TRACE |
WIDTH_M |
WIDTH_PX |
ZOOM |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private boolean |
requiresArg |
private char |
shortOption |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Replies the option name
|
char |
getShortOption()
Replies the short option (single letter) associated with this option.
|
boolean |
requiresArgument()
Determines if this option requires an argument.
|
static RenderingCLI.Option |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RenderingCLI.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderingCLI.Option HELP
public static final RenderingCLI.Option DEBUG
public static final RenderingCLI.Option TRACE
public static final RenderingCLI.Option INPUT
public static final RenderingCLI.Option STYLE
public static final RenderingCLI.Option SETTING
public static final RenderingCLI.Option OUTPUT
public static final RenderingCLI.Option ZOOM
public static final RenderingCLI.Option SCALE
public static final RenderingCLI.Option BOUNDS
public static final RenderingCLI.Option ANCHOR
public static final RenderingCLI.Option WIDTH_M
public static final RenderingCLI.Option HEIGHT_M
public static final RenderingCLI.Option WIDTH_PX
public static final RenderingCLI.Option HEIGHT_PX
public static final RenderingCLI.Option PROJECTION
public static final RenderingCLI.Option MAX_IMAGE_SIZE
private final java.lang.String name
private final boolean requiresArg
private final char shortOption
public static RenderingCLI.Option[] values()
for (RenderingCLI.Option c : RenderingCLI.Option.values()) System.out.println(c);
public static RenderingCLI.Option valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public boolean requiresArgument()
true
if this option requires an argument, false
otherwisepublic char getShortOption()