Class ObjectReference
java.lang.Object
de.xima.fc.workflow.ObjectReference
- All Implemented Interfaces:
IObjectReference, Serializable
A reference to an object (a concrete instance of a certain type of objects), consisting of the type of the objects
and the unique identifier of the object within that type.
- Since:
- 8.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectReferencecopyOf(IObjectReference value) Creates a copy of the given object reference with the same type and id.booleangetId()Gets the ID of the identified object.getType()Gets the type of the identified objects.inthashCode()static ObjectReferenceCreates a new object reference of the given type and id.static ObjectReferenceofKnown(EntityType type, String id) Creates a new object reference of the given type and id.toString()static ObjectReferenceParses an object reference from its string representation, as returned bytoString().Methods inherited from interface IObjectReference
getId, getTypeKnown
-
Method Details
-
equals
-
getId
Description copied from interface:IObjectReferenceGets the ID of the identified object.- Specified by:
getIdin interfaceIObjectReference- Returns:
- The object ID.
-
getType
Description copied from interface:IObjectReferenceGets the type of the identified objects. This should be thetype nameof anEntityType, if available, but may be another string in case no such entity type exists. PreferIObjectReference.getTypeKnown()if applicable.- Specified by:
getTypein interfaceIObjectReference- Returns:
- The object type.
-
hashCode
-
toString
-
copyOf
Creates a copy of the given object reference with the same type and id.- Parameters:
value- The object reference to copy.- Returns:
- The copied object reference.
-
of
Creates a new object reference of the given type and id.- Parameters:
type- The type of the object. Must have atoString()method that returns a unique string representation.id- The identifier for the object of that type. Must have atoString()method that returns a unique string representation.- Returns:
- The object reference.
-
ofKnown
Creates a new object reference of the given type and id.- Parameters:
type- The type of the object. Must have atoString()method that returns a unique string representation.id- The identifier for the object of that type. Must have atoString()method that returns a unique string representation.- Returns:
- The object reference.
-
valueOf
Parses an object reference from its string representation, as returned bytoString().- Parameters:
value- The string representation.- Returns:
- The object reference, or null if the string is null or blank.
- Throws:
IllegalArgumentException- If the string is not in the correct format.
-