Class MapSetter

  • All Implemented Interfaces:
    Setter

    public class MapSetter
    extends java.lang.Object
    implements Setter
    • Constructor Summary

      Constructors 
      Constructor Description
      MapSetter​(java.lang.Object bean, java.lang.reflect.Field f)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapSetter

        public MapSetter​(java.lang.Object bean,
                         java.lang.reflect.Field f)
    • Method Detail

      • getType

        public java.lang.Class getType()
        Description copied from interface: Setter
        Gets the type of the underlying method/field.
        Specified by:
        getType in interface Setter
      • isMultiValued

        public boolean isMultiValued()
        Description copied from interface: Setter
        Whether this setter is instrinsically multi-valued.
        Specified by:
        isMultiValued in interface Setter
      • addValue

        public void addValue​(java.lang.Object value)
        Description copied from interface: Setter
        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.

        Specified by:
        addValue in interface Setter