Interface IObjectReferenceDescriptor
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ObjectReferenceDescriptor
Interface describing an entity reference and its location
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()Returns the object identifying the location or path of the object reference.
-
Method Details
-
getPath
Serializable getPath()Returns the object identifying the location or path of the object reference. You may use any serializable object you wish. It is guaranteed that the path you return fromreadObjectReferencesis the same path that will be passed towriteObjectReferenceslater. You can then use this path to write back the object to the properties model. For example, you may choose to use simple string names; or JSON paths if your properties model contains lists or maps.- Returns:
- The path identifying the location of the object reference.
-
getReference
IObjectReference getReference()Returns thereferenceto an object in the properties at the givenpath. Usually this is the ID of the object that can be used to identify it.- Returns:
- The reference to the object at the path.
-