public abstract class ParameterDescriptor extends Object
| Constructor and Description |
|---|
ParameterDescriptor(Object binding,
org.crsh.cli.impl.ParameterType<?> type,
Description description,
boolean required,
boolean password,
boolean unquote,
Class<? extends Completer> completerType,
Annotation annotation) |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
getAnnotation() |
Object |
getBinding() |
Class<? extends Completer> |
getCompleterType() |
Class<?> |
getDeclaredType() |
Description |
getDescription() |
org.crsh.cli.impl.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) |
public ParameterDescriptor(Object binding, org.crsh.cli.impl.ParameterType<?> type, Description description, boolean required, boolean password, boolean unquote, Class<? extends Completer> completerType, Annotation annotation) throws org.crsh.cli.impl.descriptor.IllegalValueTypeException, org.crsh.cli.impl.descriptor.IllegalParameterException
org.crsh.cli.impl.descriptor.IllegalValueTypeExceptionorg.crsh.cli.impl.descriptor.IllegalParameterExceptionpublic abstract Object parse(List<String> values) throws SyntaxException
SyntaxExceptionpublic 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 org.crsh.cli.impl.Multiplicity getMultiplicity()
public final boolean isSingleValued()
public final boolean isMultiValued()
public abstract void printUsage(Appendable writer) throws IOException
IOExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.