Class MethodSetter

java.lang.Object
me.ahoo.cosid.accessor.method.MethodSetter
All Implemented Interfaces:
CosIdSetter

public class MethodSetter extends Object implements CosIdSetter
ID setter that accesses via setter method.
  • Constructor Details

    • MethodSetter

      public MethodSetter(Method setter)
      Creates a setter for the specified method.
      Parameters:
      setter - the setter method
  • Method Details

    • getSetter

      public Method getSetter()
      Gets the setter method.
      Returns:
      the setter method
    • setId

      public void setId(Object target, Object id)
      Description copied from interface: CosIdSetter
      Sets the ID value on the target object.
      Specified by:
      setId in interface CosIdSetter
      Parameters:
      target - the object to set ID on
      id - the ID value to set