Interface MendixObjectReferenceSet
- All Superinterfaces:
IMendixObjectMember<List<IMendixIdentifier>>
Provides the interface for a Mendix association with type Reference Set.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
IMendixObjectMember.MemberState, IMendixObjectMember.MemberValueState
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValue
(IContext context, IMendixIdentifier valueToAdd) Adds valueToAdd to this reference set.Returns whether this reference set contain an object reference.Deprecated.since 9.7.0.Deprecated.since 9.7.0.getValueFromStringSet
(String stringValue) Parses string to a set of object references.isBoth()
Returns whether this reference set is bidirectional.Returns the meta-object for this reference set.Returns the type of the referenced objects.void
removeValue
(IContext context, IMendixIdentifier valueToRemove) Removes valueToRemove from this reference set.void
setValue
(IContext context, Set<IMendixIdentifier> valueToSet, Boolean performValidation) Sets the value of this reference set to valueToSet.void
setValueFromDeserialization
(IContext context, Set<IMendixIdentifier> ids) Deprecated.since 9.7.0.Methods inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
getMemberValueState, getName, getOriginalValue, getState, getValue, getValueFromString, hasReadAccess, hasWriteAccess, isVirtual, parseValueFromString, parseValueToString, setValue, setValue, toString
-
Method Details
-
modelReference
IMetaAssociation modelReference()Returns the meta-object for this reference set.- Returns:
- the meta-object
-
referenceType
String referenceType()Returns the type of the referenced objects.- Returns:
- the reference type
-
addValue
Adds valueToAdd to this reference set.- Parameters:
context
- the contextvalueToAdd
- the object reference to add
-
removeValue
Removes valueToRemove from this reference set.- Parameters:
context
- the contextvalueToRemove
- the object reference to remove
-
getAddedIds
Deprecated.since 9.7.0. This method was exposed for an internal optimization which is implemented differently now. There is no replacement.Returns the object references that were added to this reference set.- Returns:
- the identifiers of the added objects
-
getRemovedIds
Deprecated.since 9.7.0. This method was exposed for an internal optimization which is implemented differently now. There is no replacement.Returns the object references that were removed from this reference set.- Returns:
- the identifiers of the removed objects
-
setValue
Sets the value of this reference set to valueToSet.- Parameters:
context
- the contextvalueToSet
- the value to setperformValidation
- indicates whether to perform data validation
-
setValueFromDeserialization
Deprecated.since 9.7.0. This method was exposed for internal purposes. There is no replacement.Sets the value of this reference set from a set of referenced identifiers.- Parameters:
context
- the contextids
- the identifiers of the objects to set
-
isBoth
Boolean isBoth()Returns whether this reference set is bidirectional.- Returns:
- true if the set is bidirectional, false otherwise
-
contains
Returns whether this reference set contain an object reference.- Parameters:
id
- the identifier of the object to check- Returns:
- true if the object is referenced, false otherwise
-
getValueFromStringSet
Parses string to a set of object references. The specified string should contain a comma-separated list of UUIDs.- Parameters:
stringValue
- the string to parse- Returns:
- the object identifiers
-