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).
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Defines the object member states.static enum
Defines the object member's value states. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getMemberValueState
(IContext context) Returns the object member's value state.getName()
Returns the name of the object member.getOriginalValue
(IContext context) Returns the original value value of this member.getState()
Returns the object member's changed state.Returns the value of this object member.getValueFromString
(String stringValue) Parses and returns a value for this object member from a string.int
hashCode()
boolean
hasReadAccess
(IContext context) Returns whether retrieving the value of this member is allowed or not.boolean
hasWriteAccess
(IContext context) Returns whether changing the value of this member is allowed or not.boolean
Returns whether this object member is virtual.void
parseValueFromString
(IContext context, String stringValue) Parses the value for this object member from a string.parseValueToString
(IContext context) Returns a string representation of this object member's value.void
Sets the value of this object member.void
UsesetValue
instead as this is for internal use.toString()
Returns a string representation of this object member.
-
Method Details
-
getValue
Returns the value of this object member.- Parameters:
context
- the context- Returns:
- the value
-
setValue
Sets the value of this object member.- Parameters:
context
- the contextvalue
- the value to set
-
setValue
UsesetValue
instead as this is for internal use.- Parameters:
context
- the contextvalue
- the value to setperformDataValidation
- indicates whether to perform data validation
-
parseValueToString
Returns a string representation of this object member's value.- Parameters:
context
- the context- Returns:
- the string representation
-
getValueFromString
Parses and returns a value for this object member from a string.- Parameters:
stringValue
- the string to parse- Returns:
- the parsed value
-
parseValueFromString
Parses the value for this object member from a string.- Parameters:
context
- the contextstringValue
- the string to parse
-
toString
String toString()Returns a string representation of this object member. -
isVirtual
boolean isVirtual()Returns whether this object member is virtual.- Returns:
- true if the member is virtual, false otherwise
-
getOriginalValue
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
IMendixObjectMember.MemberState getState()Returns the object member's changed state.- Returns:
- CHANGED if the member was changed, UNCHANGED otherwise
-
getMemberValueState
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
Returns whether retrieving the value of this member is allowed or not.- Returns:
- true if reading is allowed, false otherwise
-
hasWriteAccess
Returns whether changing the value of this member is allowed or not.- Returns:
- true if writing is allowed, false otherwise
-
hashCode
int hashCode() -
equals
-