Class FieldSetter

java.lang.Object
me.ahoo.cosid.accessor.field.FieldSetter
All Implemented Interfaces:
CosIdSetter

public class FieldSetter extends Object implements CosIdSetter
ID setter that accesses field directly.
  • Constructor Details

    • FieldSetter

      public FieldSetter(Field idField)
      Creates a setter for the specified field.
      Parameters:
      idField - the field to access
  • Method Details

    • 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