Package org.kohsuke.args4j.spi
Interface Setter<T>
-
- All Known Implementing Classes:
MapSetter
public interface Setter<T>
Abstraction of the value setter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addValue(T value)
Adds/sets a value to the property of the option bean.java.lang.Class<T>
getType()
Gets the type of the underlying method/field.boolean
isMultiValued()
Whether this setter is instrinsically multi-valued.
-
-
-
Method Detail
-
addValue
void addValue(T value) throws CmdLineException
Adds/sets a value to the property of the option bean.A
Setter
object has an implicit knowledge about the property it's setting, and the instance of the option bean.- Throws:
CmdLineException
-
getType
java.lang.Class<T> getType()
Gets the type of the underlying method/field.
-
isMultiValued
boolean isMultiValued()
Whether this setter is instrinsically multi-valued.
-
-