Constructor and Description |
---|
MethodSetter(CmdLineParser parser,
Object bean,
Method m) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(Object value)
Adds/sets a value to the property of the option bean.
|
Class |
getType()
Gets the type of the underlying method/field.
|
boolean |
isMultiValued()
Whether this setter is instrinsically multi-valued.
|
public MethodSetter(CmdLineParser parser, Object bean, Method m)
public Class getType()
Setter
public boolean isMultiValued()
Setter
isMultiValued
in interface Setter
public void addValue(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-2021 Kohsuke Kawaguchi. All Rights Reserved.