Package pl.edu.icm.unity.types.basic
Class EntityParam
- java.lang.Object
-
- pl.edu.icm.unity.types.basic.EntityParam
-
- All Implemented Interfaces:
InitializationValidator
public class EntityParam extends Object implements InitializationValidator
Allows for flexible addressing of a subject of a method operating on a particular entity: either using entityId or usingIdentityValue
(belonging to the entity).- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description EntityParam(Long entityId)
EntityParam(IdentityTaV identityValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Long
getEntityId()
IdentityTaV
getIdentity()
int
hashCode()
String
toString()
void
validateInitialization()
Throws exception if some of the fields are null or incomplete.
-
-
-
Constructor Detail
-
EntityParam
public EntityParam(Long entityId)
- Parameters:
entityId
-
-
EntityParam
public EntityParam(IdentityTaV identityValue)
-
-
Method Detail
-
validateInitialization
public void validateInitialization() throws IllegalIdentityValueException
Description copied from interface:InitializationValidator
Throws exception if some of the fields are null or incomplete.- Specified by:
validateInitialization
in interfaceInitializationValidator
- Throws:
IllegalIdentityValueException
-
getEntityId
public Long getEntityId()
-
getIdentity
public IdentityTaV getIdentity()
-
-