org.kohsuke.args4j.spi
Interface Setter<T>

All Known Implementing Classes:
MapSetter, MethodSetter

public interface Setter<T>

Abstraction of the value setter.

Author:
Kohsuke Kawaguchi

Method Summary
 void addValue(T value)
          Adds/sets a value to the property of the option bean.
 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

Class<T> getType()
Gets the type of the underlying method/field.


isMultiValued

boolean isMultiValued()
Whether this setter is instrinsically multi-valued.



Copyright © 2003-2011 Kohsuke Kawaguchi. All Rights Reserved.