com.beust.jcommander
Class WrappedParameter

java.lang.Object
  extended by com.beust.jcommander.WrappedParameter

public class WrappedParameter
extends Object

Encapsulates the operations common to @Parameter and @DynamicParameter


Constructor Summary
WrappedParameter(DynamicParameter p)
           
WrappedParameter(Parameter p)
           
 
Method Summary
 void addValue(Parameterized parameterized, Object object, Object value)
           
 int arity()
           
 boolean echoInput()
           
 String getAssignment()
           
 DynamicParameter getDynamicParameter()
           
 Parameter getParameter()
           
 boolean hidden()
           
 boolean isHelp()
           
 String[] names()
           
 boolean password()
           
 boolean required()
           
 Class<? extends IValueValidator> validateValueWith()
           
 Class<? extends IParameterValidator> validateWith()
           
 boolean variableArity()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedParameter

public WrappedParameter(Parameter p)

WrappedParameter

public WrappedParameter(DynamicParameter p)
Method Detail

getParameter

public Parameter getParameter()

getDynamicParameter

public DynamicParameter getDynamicParameter()

arity

public int arity()

hidden

public boolean hidden()

required

public boolean required()

password

public boolean password()

names

public String[] names()

variableArity

public boolean variableArity()

validateWith

public Class<? extends IParameterValidator> validateWith()

validateValueWith

public Class<? extends IValueValidator> validateValueWith()

echoInput

public boolean echoInput()

addValue

public void addValue(Parameterized parameterized,
                     Object object,
                     Object value)

getAssignment

public String getAssignment()

isHelp

public boolean isHelp()


Copyright © 2012. All Rights Reserved.