| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vivoweb.harvester.util.args.ArgDef
public class ArgDef
Defines an Argument
| Constructor Summary | |
|---|---|
| ArgDef()Default Constructor | |
| Method Summary | |
|---|---|
|  java.lang.String | getDefaultValue()Get the default value | 
|  java.lang.String | getDescription()Get the argument description | 
|  java.lang.String | getLongOption()Get the long --Foo type option flag | 
|  java.lang.String | getParameterDescription()Get the description for this arguments parameter | 
|  java.lang.Character | getShortOption()Get the short -X type option flag | 
|  boolean | hasDefaultValue()Does this argument have a parameter with a default value | 
|  boolean | hasParameter()Does this argument have at least a parameter | 
|  boolean | hasParameters()Does this argument have many parameters | 
|  boolean | isParameterRequired()Does this argument require a parameter | 
|  boolean | isParameterValueMap()Is this argument a value map | 
|  boolean | isRequired()Is this argument required | 
|  int | numParameters()Get the number of parameters for this argument | 
|  ArgDef | setDefaultValue(java.lang.String valueDefault)Sets the default value | 
|  ArgDef | setDescription(java.lang.String description)Sets the description of this argument | 
|  ArgDef | setLongOpt(java.lang.String longOpt)Sets the long --Foo type option flag | 
|  ArgDef | setRequired(boolean required)Sets this argument as required | 
|  ArgDef | setShortOption(char shortOpt)Sets the short -X type option flag | 
|  ArgDef | withParameter(boolean required,
              java.lang.String description)Set this argument to have a parameter | 
|  ArgDef | withParameters(boolean required,
               java.lang.String description)Set this argument to have any number of parameters | 
|  ArgDef | withParameters(boolean required,
               java.lang.String description,
               int numParams)Set this argument to have a set number of parameters | 
|  ArgDef | withParameterValueMap(java.lang.String propertyName,
                      java.lang.String valueName)Sets this argument to have a value map | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ArgDef()
| Method Detail | 
|---|
public boolean hasParameter()
public boolean hasParameters()
public int numParameters()
public boolean isParameterRequired()
public java.lang.String getParameterDescription()
public boolean isParameterValueMap()
public java.lang.Character getShortOption()
public java.lang.String getLongOption()
public boolean isRequired()
public boolean hasDefaultValue()
public java.lang.String getDefaultValue()
public java.lang.String getDescription()
public ArgDef setShortOption(char shortOpt)
shortOpt - short option value
public ArgDef setLongOpt(java.lang.String longOpt)
longOpt - long option value
public ArgDef setDescription(java.lang.String description)
description - description of this argument
public ArgDef setRequired(boolean required)
required - is this argument required
public ArgDef setDefaultValue(java.lang.String valueDefault)
valueDefault - the default value
public ArgDef withParameter(boolean required,
                            java.lang.String description)
required - is this parameter requireddescription - description of the parameter
public ArgDef withParameters(boolean required,
                             java.lang.String description)
required - is this parameter requireddescription - description of the parameter
public ArgDef withParameters(boolean required,
                             java.lang.String description,
                             int numParams)
required - is this parameter requireddescription - description of the parameternumParams - number of parameters
public ArgDef withParameterValueMap(java.lang.String propertyName,
                                    java.lang.String valueName)
propertyName - name of propertyvalueName - name of value
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||