Package de.xima.fc.workflow
Class ObjectReferenceDescriptor
- java.lang.Object
-
- de.xima.fc.workflow.ObjectReferenceDescriptor
-
- All Implemented Interfaces:
IObjectReferenceDescriptor,Serializable
public final class ObjectReferenceDescriptor extends Object implements IObjectReferenceDescriptor
POJO implementation ofIObjectReferenceDescriptor.- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectReferenceDescriptor(Serializable key, IObjectReference reference)Creates a new POJO instance with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SerializablegetPath()Returns the object identifying the location or path of the object reference.IObjectReferencegetReference()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ObjectReferenceDescriptor
public ObjectReferenceDescriptor(Serializable key, IObjectReference reference)
Creates a new POJO instance with the given data.- Parameters:
key- The key or path to the reference.reference- The reference.
-
-
Method Detail
-
getPath
public Serializable getPath()
Description copied from interface:IObjectReferenceDescriptorReturns 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.- Specified by:
getPathin interfaceIObjectReferenceDescriptor- Returns:
- The path identifying the location of the object reference.
-
getReference
public IObjectReference getReference()
Description copied from interface:IObjectReferenceDescriptorReturns thereferenceto an object in the properties at the givenpath. Usually this is the ID of the object that can be used to identify it.- Specified by:
getReferencein interfaceIObjectReferenceDescriptor- Returns:
- The reference to the object at the path.
-
-