org.crsh.cmdline
Class ParameterDescriptor<B extends TypeBinding>
java.lang.Object
org.crsh.cmdline.ParameterDescriptor<B>
- Direct Known Subclasses:
- ArgumentDescriptor, OptionDescriptor
public abstract class ParameterDescriptor<B extends TypeBinding>
- extends Object
- Version:
- $Revision$
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterDescriptor
public ParameterDescriptor(B binding,
Type javaType,
Description description,
boolean required,
boolean password,
Class<? extends Completer> completerType,
Annotation annotation)
throws IllegalValueTypeException,
IllegalParameterException
- Throws:
IllegalValueTypeException
IllegalParameterException
parse
public Object parse(String s)
getOwner
public CommandDescriptor<?,B> getOwner()
getJavaType
public Type getJavaType()
getJavaValueType
public Class<?> getJavaValueType()
getBinding
public final B getBinding()
getUsage
public final String getUsage()
getDescription
public Description getDescription()
getAnnotation
public Annotation getAnnotation()
isRequired
public final boolean isRequired()
isPassword
public final boolean isPassword()
getType
public final SimpleValueType getType()
getMultiplicity
public final Multiplicity getMultiplicity()
getCompleterType
public final Class<? extends Completer> getCompleterType()
printUsage
public abstract void printUsage(Appendable writer)
throws IOException
- Throws:
IOException
Copyright © 2011 eXo Platform SAS. All Rights Reserved.