|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnaq.util.jclap.Option<E>
E
- the return type of the optionpublic abstract class Option<E>
Base implementation of a command-line option.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDescription()
Returns the description text of this Option. |
java.lang.String |
getLongName()
Returns the long name of this option. |
int |
getMaxCount()
Returns the maximum value count for this option. |
int |
getMinCount()
Returns the minimum value count for this option. |
java.lang.String |
getShortName()
Returns the short name of this option. |
abstract java.lang.Class<E> |
getType()
Returns the class type of value this option can take. |
java.util.List<E> |
getValues()
Returns the mapped value of the specified argument if it exists. |
int |
hashCode()
|
boolean |
isAllowMany()
Returns whether this option allows multiple values to be set. |
boolean |
isHidden()
Returns whether this option is hidden from the usage message. |
boolean |
isMandatory()
Returns whether this option is mandatory. |
boolean |
requiresValue()
Returns whether this option requires a value. |
Option<E> |
setHidden()
Sets the flag to hide this option from the usage message. |
void |
setMinMaxCounts(int minCount,
int maxCount)
Sets the minimum/maximum value counts for this option. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.Class<E> getType()
public java.util.List<E> getValues()
public java.lang.String getShortName()
public java.lang.String getLongName()
public java.lang.String getDescription()
public boolean requiresValue()
public int getMinCount()
public int getMaxCount()
public boolean isMandatory()
public boolean isAllowMany()
public void setMinMaxCounts(int minCount, int maxCount)
public Option<E> setHidden()
public boolean isHidden()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |