| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addValue(Object value)
Implements org. Adds/sets a value to the property of the option bean. |
| public AnnotatedElement | asAnnotatedElement()
Implements org. Returns the |
| public FieldSetter | asFieldSetter()
Implements org. If this setter encapsulates a field, return the direct access to that field as
|
| private List | |
| public Class | getType()
Implements org. Gets the type of the underlying method/field. |
| public Object | |
| public List | getValueList()
Implements org. Gets the current value of the property. |
| public boolean | isMultiValued()
Implements org. Whether this setter is intrinsically multi-valued. |
| FieldSetter | back to summary |
|---|---|
| public FieldSetter(Object bean, Field f) | |
| addValue | back to summary |
|---|---|
| public void addValue(Object value) Implements org. Doc from org. Adds/sets a value to the property of the option bean.
A | |
| asAnnotatedElement | back to summary |
|---|---|
| public AnnotatedElement asAnnotatedElement() Implements org. Doc from org. Returns the
This enables | |
| asFieldSetter | back to summary |
|---|---|
| public FieldSetter asFieldSetter() Implements org. Doc from org. If this setter encapsulates a field, return the direct access to that field as
| |
| asList | back to summary |
|---|---|
| private List | |
| getType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Gets the type of the underlying method/field. | |
| getValue | back to summary |
|---|---|
| public Object getValue() | |
| getValueList | back to summary |
|---|---|
| public List Implements org. Doc from org. Gets the current value of the property.
A | |
| isMultiValued | back to summary |
|---|---|
| public boolean isMultiValued() Implements org. Doc from org. Whether this setter is intrinsically multi-valued.
When parsing arguments (instead of options), intrinsically multi-valued setters consume
all the remaining arguments. So, if the setter can store multiple values,
this method should return This characteristics of a setter doesn't affect option parsing at all; any options can be specified multiple times. In many cases, this is a no-op--but when your shell script expands multiple environment variables (each of which may contain options), tolerating such redundant options can be useful. | |