Interface BindingMember

All Known Implementing Classes:
DefaultBindingMember

public interface BindingMember
A member in the binding chain.
Author:
harald
  • Method Details

    • getParentClass

      Class<?> getParentClass()
      Gets the parent class of this member.
      This is the class in which this member is declared.
      Returns:
      the declaring parent class
    • getParentMember

      BindingMember getParentMember()
      Gets the parent's member.
      Returns:
      the parent member, null if container root
    • getMemberName

      String getMemberName()
      Gets the declared name of this member.
      Returns:
      the declared name
    • getMemberPath

      String getMemberPath()
      Gets the member path.
      Returns:
      the member path as a string
    • getField

      Field getField()
      Gets the bound field.
      Returns:
      the field, null if none
    • getGetter

      Method getGetter()
      Gets the getter method.
      Returns:
      the method, null if none
    • getSetter

      Method getSetter()
      Gets the setter method.
      Returns:
      the setter method, null if none
    • getFrom

      Method getFrom()
      Gets the "from"-method.
      Members of immutable objects may provide a from method that takes the new member value as its argument and returns a new immutable object that will be set as the parent member's value.
      Returns:
      the "from"-method, null if none
    • isReadOnly

      boolean isReadOnly()
      Returns whether member is read only.
      Returns:
      true if readonly
    • getObject

      Object getObject(Object parent)
      Gets the object of this element.
      Parameters:
      parent - the parent containing this element
      Returns:
      the object of this member
    • setObject

      Object setObject(Object parent, Object value)
      Sets the object of this member.
      Parameters:
      parent - the parent containing this member
      value - the object to set
      Returns:
      the new parent if value was updated via "from"- or "with"-method
    • getType

      Class<?> getType()
      Gets the type of the field.
      Returns:
      the class
    • getGenericType

      Type getGenericType()
      Gets the generic type of the member.
      Returns:
      the generic type