|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.cli2.DisplaySetting
public class DisplaySetting
An enum of possible display settings. These settings are used to control the presence of various features in the String representations of options, CommandLines and usage strings. Usually a Set of DisplaySetting instances will be passed to a method that will lookup the presence of the values.
Field Summary | |
---|---|
private static java.util.Set |
all
|
static java.util.Set |
ALL
A Set guarenteed to contain all possible DisplaySetting values |
static DisplaySetting |
DISPLAY_ALIASES
Indicates that aliases should be included |
static DisplaySetting |
DISPLAY_ARGUMENT_BRACKETED
Indicates that arguments should be included bracketed |
static DisplaySetting |
DISPLAY_ARGUMENT_NUMBERED
Indicates that arguments should be included numbered |
static DisplaySetting |
DISPLAY_GROUP_ARGUMENT
Indicates that group arguments should be included |
static DisplaySetting |
DISPLAY_GROUP_EXPANDED
Indicates that groups should be included expanded |
static DisplaySetting |
DISPLAY_GROUP_NAME
Indicates that group names should be included |
static DisplaySetting |
DISPLAY_GROUP_OUTER
Indicates that group outer brackets should be included |
static DisplaySetting |
DISPLAY_OPTIONAL
Indicates that optionality should be included |
static DisplaySetting |
DISPLAY_PARENT_ARGUMENT
Indicates that arguments of Parents should be included |
static DisplaySetting |
DISPLAY_PARENT_CHILDREN
Indicates that children of Parents should be included |
static DisplaySetting |
DISPLAY_PROPERTY_OPTION
Indicates that property options should be included |
static DisplaySetting |
DISPLAY_SWITCH_DISABLED
Indicates that switches should be included disabled |
static DisplaySetting |
DISPLAY_SWITCH_ENABLED
Indicates that switches should be included enabled |
private int |
hashCode
The hashCode of the setting |
private java.lang.String |
name
The name of the setting |
static java.util.Set |
NONE
A Set guarenteed to contain no DisplaySetting values |
Constructor Summary | |
---|---|
private |
DisplaySetting(java.lang.String name)
Creates a new DisplaySetting with the specified name |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final java.util.Set all
public static final java.util.Set ALL
public static final java.util.Set NONE
public static final DisplaySetting DISPLAY_ALIASES
public static final DisplaySetting DISPLAY_OPTIONAL
public static final DisplaySetting DISPLAY_PROPERTY_OPTION
public static final DisplaySetting DISPLAY_SWITCH_ENABLED
public static final DisplaySetting DISPLAY_SWITCH_DISABLED
public static final DisplaySetting DISPLAY_GROUP_NAME
public static final DisplaySetting DISPLAY_GROUP_EXPANDED
public static final DisplaySetting DISPLAY_GROUP_ARGUMENT
public static final DisplaySetting DISPLAY_GROUP_OUTER
public static final DisplaySetting DISPLAY_ARGUMENT_NUMBERED
public static final DisplaySetting DISPLAY_ARGUMENT_BRACKETED
public static final DisplaySetting DISPLAY_PARENT_ARGUMENT
public static final DisplaySetting DISPLAY_PARENT_CHILDREN
private final java.lang.String name
private final int hashCode
Constructor Detail |
---|
private DisplaySetting(java.lang.String name)
name
- the name of the settingMethod Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |