com.beust.jcommander
Class ParameterDescription

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

public class ParameterDescription
extends Object


Constructor Summary
ParameterDescription(Object object, Parameter annotation, Field field, ResourceBundle bundle, JCommander jc)
           
 
Method Summary
 void addValue(String value)
           
 void addValue(String value, boolean isDefault)
          Add the specified value to the field.
 String getDescription()
           
 Field getField()
           
 String getNames()
           
 Object getObject()
           
 Parameter getParameter()
           
 boolean isNumber()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterDescription

public ParameterDescription(Object object,
                            Parameter annotation,
                            Field field,
                            ResourceBundle bundle,
                            JCommander jc)
Method Detail

getDescription

public String getDescription()

getObject

public Object getObject()

getNames

public String getNames()

getParameter

public Parameter getParameter()

getField

public Field getField()

addValue

public void addValue(String value)

addValue

public void addValue(String value,
                     boolean isDefault)
Add the specified value to the field. First look up any field converter, then any type converter, and if we can't find any, throw an exception.

Parameters:
markAdded - if true, mark this parameter as assigned

isNumber

public boolean isNumber()


Copyright © 2010. All Rights Reserved.