Interface IMendixObjectMember<T>

All Known Subinterfaces:
MendixAutoNumber, MendixBinary, MendixBoolean, MendixDateTime, MendixDecimal, MendixEnum, MendixHashString, MendixInteger, MendixLong, MendixObjectReference, MendixObjectReferenceSet, MendixString

public interface IMendixObjectMember<T>
Represents a Mendix object member (attribute or association).
  • Method Details

    • getValue

      T getValue(IContext context)
      Returns the value of this object member.
      Parameters:
      context - the context
      Returns:
      the value
    • setValue

      void setValue(IContext context, T value)
      Sets the value of this object member.
      Parameters:
      context - the context
      value - the value to set
    • setValue

      void setValue(IContext context, T value, boolean performDataValidation)
      Use setValue instead as this is for internal use.
      Parameters:
      context - the context
      value - the value to set
      performDataValidation - indicates whether to perform data validation
    • parseValueToString

      String parseValueToString(IContext context)
      Returns a string representation of this object member's value.
      Parameters:
      context - the context
      Returns:
      the string representation
    • getValueFromString

      T getValueFromString(String stringValue)
      Parses and returns a value for this object member from a string.
      Parameters:
      stringValue - the string to parse
      Returns:
      the parsed value
    • parseValueFromString

      void parseValueFromString(IContext context, String stringValue)
      Parses the value for this object member from a string.
      Parameters:
      context - the context
      stringValue - the string to parse
    • toString

      String toString()
      Returns a string representation of this object member.
      Overrides:
      toString in class Object
      Returns:
      the string representation
    • isVirtual

      boolean isVirtual()
      Returns whether this object member is virtual.
      Returns:
      true if the member is virtual, false otherwise
    • getOriginalValue

      T getOriginalValue(IContext context)
      Returns the original value value of this member. This is the value it had before any (uncommitted) changes were made.
      Parameters:
      context - the context
      Returns:
      the original value
    • getState

      Returns the object member's changed state.
      Returns:
      CHANGED if the member was changed, UNCHANGED otherwise
    • getMemberValueState

      IMendixObjectMember.MemberValueState getMemberValueState(IContext context)
      Returns the object member's value state.
      Returns:
      SET if the member has a value, NOT_SET if empty
    • getName

      String getName()
      Returns the name of the object member.
      Returns:
      the name
    • hasReadAccess

      boolean hasReadAccess(IContext context)
      Returns whether retrieving the value of this member is allowed or not.
      Returns:
      true if reading is allowed, false otherwise
    • hasWriteAccess

      boolean hasWriteAccess(IContext context)
      Returns whether changing the value of this member is allowed or not.
      Returns:
      true if writing is allowed, false otherwise
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object obj)
      Overrides:
      equals in class Object