Package de.xima.fc.workflow
Class EntityReferenceDescriptor
- java.lang.Object
-
- de.xima.fc.workflow.EntityReferenceDescriptor
-
- All Implemented Interfaces:
IEntityReferenceDescriptor
public final class EntityReferenceDescriptor extends Object implements IEntityReferenceDescriptor
POJO implementation ofIEntityReferenceDescriptor
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description EntityReferenceDescriptor(Object key, IEntityReference ref)
New POJO instance with the given data.
-
-
-
Constructor Detail
-
EntityReferenceDescriptor
public EntityReferenceDescriptor(Object key, IEntityReference ref)
New POJO instance with the given data.
-
-
Method Detail
-
getKey
public Object getKey()
- Specified by:
getKey
in interfaceIEntityReferenceDescriptor
- Returns:
Object
identifying the location of the entity reference. You may use any object you wish it is guaranteed that the key you return fromreadEntityReferences
is the same key that will be passed towriteEntityReferences
. You can then use this key to write back the entity 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.
-
getRef
public IEntityReference getRef()
- Specified by:
getRef
in interfaceIEntityReferenceDescriptor
- Returns:
- The
reference
to an entity in the properties at the givenIEntityReferenceDescriptor.getKey()
.
-
-