|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.cli.descriptor.ParameterDescriptor
public abstract class ParameterDescriptor
Field Summary | |
---|---|
private Annotation |
annotation
The annotation when it exists. |
private Object |
binding
. |
private Class<? extends Completer> |
completerType
. |
private Description |
description
. |
private boolean |
password
. |
private boolean |
required
. |
private ParameterType<?> |
type
. |
private boolean |
unquote
. |
Constructor Summary | |
---|---|
ParameterDescriptor(Object binding,
ParameterType<?> type,
Description description,
boolean required,
boolean password,
boolean unquote,
Class<? extends Completer> completerType,
Annotation annotation)
|
Method Summary | |
---|---|
Annotation |
getAnnotation()
|
Object |
getBinding()
|
Class<? extends Completer> |
getCompleterType()
|
Class<?> |
getDeclaredType()
|
Description |
getDescription()
|
Multiplicity |
getMultiplicity()
|
ValueType |
getType()
|
String |
getUsage()
|
boolean |
isMultiValued()
|
boolean |
isPassword()
|
boolean |
isRequired()
|
boolean |
isSingleValued()
|
boolean |
isUnquote()
|
abstract Object |
parse(List<String> values)
|
Object |
parse(String s)
|
abstract void |
printUsage(Appendable writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Object binding
private final Description description
private final ParameterType<?> type
private final boolean required
private final boolean password
private final Class<? extends Completer> completerType
private final Annotation annotation
private final boolean unquote
Constructor Detail |
---|
public ParameterDescriptor(Object binding, ParameterType<?> type, Description description, boolean required, boolean password, boolean unquote, Class<? extends Completer> completerType, Annotation annotation) throws IllegalValueTypeException, IllegalParameterException
IllegalValueTypeException
IllegalParameterException
Method Detail |
---|
public Object parse(String s) throws Exception
Exception
public abstract Object parse(List<String> values) throws SyntaxException
SyntaxException
public Class<?> getDeclaredType()
public final Object getBinding()
public final String getUsage()
public Description getDescription()
public Annotation getAnnotation()
public final boolean isRequired()
public boolean isUnquote()
public final boolean isPassword()
public final ValueType getType()
public final Multiplicity getMultiplicity()
public final boolean isSingleValued()
public final boolean isMultiValued()
public final Class<? extends Completer> getCompleterType()
public abstract void printUsage(Appendable writer) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |