Constructor and Description |
---|
MethodSetter(CmdLineParser parser,
java.lang.Object bean,
java.lang.reflect.Method m) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.Object value)
Adds/sets a value to the property of the option bean.
|
java.lang.Class |
getType()
Gets the type of the underlying method/field.
|
boolean |
isMultiValued()
Whether this setter is instrinsically multi-valued.
|
public MethodSetter(CmdLineParser parser, java.lang.Object bean, java.lang.reflect.Method m)
public java.lang.Class getType()
Setter
public boolean isMultiValued()
Setter
isMultiValued
in interface Setter
public void addValue(java.lang.Object value) throws CmdLineException
Setter
A Setter
object has an implicit knowledge about the property it's setting,
and the instance of the option bean.
addValue
in interface Setter
CmdLineException
Copyright © 2003-2011 Kohsuke Kawaguchi. All Rights Reserved.