public abstract class ParameterDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
private Annotation |
annotation
The annotation when it exists.
|
private Class<? extends Completer> |
completerType
.
|
private Description |
description
.
|
private boolean |
password
.
|
private boolean |
required
.
|
private ParameterType<?> |
type
.
|
private boolean |
unquote
.
|
Constructor and Description |
---|
ParameterDescriptor(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() |
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) |
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
public ParameterDescriptor(ParameterType<?> type, Description description, boolean required, boolean password, boolean unquote, Class<? extends Completer> completerType, Annotation annotation) throws IllegalValueTypeException, IllegalParameterException
public abstract Object parse(List<String> values) throws SyntaxException
SyntaxException
public Class<?> getDeclaredType()
public Description getDescription()
public Annotation getAnnotation()
public final boolean isRequired()
public boolean isUnquote()
public final boolean isPassword()
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
Copyright © 2015 eXo Platform SAS. All Rights Reserved.