public abstract class ParameterDescriptor extends Object
| Constructor and Description |
|---|
ParameterDescriptor(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() |
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(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 org.crsh.cli.impl.SyntaxException
org.crsh.cli.impl.SyntaxExceptionpublic Class<?> getDeclaredType()
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 © 2015 eXo Platform SAS. All Rights Reserved.