public abstract static class OptionSet.Option
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
abbrev
The short form name of this option.
|
java.lang.String |
descr
A description of this option.
|
java.lang.String |
name
The long form name of this option.
|
protected OptionSet |
set
The set the option is registered with.
|
Constructor and Description |
---|
OptionSet.Option(java.lang.String name,
java.lang.String abbrev,
java.lang.String descr)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
asNameValue()
Returns a
String representation of this option's
value for printing. |
java.lang.String |
asUsageHelp()
Returns a usage description of this option.
|
abstract int |
parse(java.util.Iterator i)
Parse this option for arguments it may require.
|
protected OptionSet set
public final java.lang.String name
public final java.lang.String abbrev
public final java.lang.String descr
public OptionSet.Option(java.lang.String name, java.lang.String abbrev, java.lang.String descr)
public abstract int parse(java.util.Iterator i)
public abstract java.lang.String asNameValue()
String
representation of this option's
value for printing.public java.lang.String asUsageHelp()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.