<args>
<option field="" method="" name="" usage="" metavar="" handler=""/>
<argument field="" method="" usage="" metavar="" handler=""/>
</args>
Exactly one of the attributes 'field' or 'method' must be set.
The 'handler' value specifies a full qualified class name.
<args>
<option field="recursive" name="-r" usage="recursively run something"/>
<option field="out" name="-o" usage="output to this file" metavar="OUTPUT"/>
<option method="setStr(String)" name="-str"/>
<option field="data" name="-custom" handler="org.kohsuke.args4j.spi.BooleanOptionHandler" usage="boolean value for checking the custom handler"/>
<argument field="arguments"/>
<args>
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private AccessibleObject | Returns: the reflection referencebean instance bean, String name of the field (field XOR method must be specified) field, String name of the method (field XOR method must be specified) method)Finds a |
| public void | |
| public void |
| XmlParser | back to summary |
|---|---|
| public XmlParser() | |
| findMethodOrField | back to summary |
|---|---|
| private AccessibleObject findMethodOrField(Object bean, String field, String method) throws SecurityException, NoSuchFieldException, NoSuchMethodException, ClassNotFoundException Finds a
| |
| parse | back to summary |
|---|---|
| public void parse(URL xml, CmdLineParser parser, Object bean) | |
| parse | back to summary |
|---|---|
| public void parse(InputSource xml, CmdLineParser parser, Object bean) | |