public interface Identity
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String attr)
Get the value of the specified attribute
attr . |
java.util.Set |
getAttributeNames()
Provides a set of all the attribute names.
|
java.util.HashMap |
getAttributes()
Provides a map of all attribute-value pair of this identity.
|
java.lang.String |
getEntityId()
Provides GUID of the entity.
|
void |
setAttribute(java.lang.String attr,
java.lang.Object val)
Adds the attribute
attr and it's value val . |
java.lang.String |
toString()
Returns the string representation of this Identity.
|
void setAttribute(java.lang.String attr, java.lang.Object val)
attr
and it's value val
.attr
- The attribute to be added.val
- The value of the attribute. This object must be serializable.java.lang.Object getAttribute(java.lang.String attr)
attr
.attr
- The attribute whose value is to be returned.java.lang.String getEntityId()
java.util.HashMap getAttributes()
map
of all attribute-value pair of this identity.java.util.Set getAttributeNames()
java.lang.String toString()
toString
in class java.lang.Object