org.crsh.cmdline
Class ParameterDescriptor<B extends TypeBinding>

java.lang.Object
  extended by org.crsh.cmdline.ParameterDescriptor<B>
Direct Known Subclasses:
ArgumentDescriptor, OptionDescriptor

public abstract class ParameterDescriptor<B extends TypeBinding>
extends Object

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ParameterDescriptor(B binding, Type javaType, Description description, boolean required, boolean password, Class<? extends Completer> completerType, Annotation annotation)
           
 
Method Summary
 Annotation getAnnotation()
           
 B getBinding()
           
 Class<? extends Completer> getCompleterType()
           
 Description getDescription()
           
 Type getJavaType()
           
 Class<?> getJavaValueType()
           
 Multiplicity getMultiplicity()
           
 CommandDescriptor<?,B> getOwner()
           
 SimpleValueType getType()
           
 String getUsage()
           
 boolean isPassword()
           
 boolean isRequired()
           
 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
 

Constructor Detail

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
Method Detail

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.