public interface Relationship
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.Map |
getAttributes()
Provides a map of all attribute-value pair of this identity.
|
java.lang.String |
getID1()
Provides a UID of the first identity.
|
Identity |
getId1Entity()
Returns the first identity.
|
java.lang.String |
getID2()
Provides a UID of the second identity.
|
Identity |
getId2Entity()
Returns the second identity.
|
void |
setAttribute(java.lang.String attr,
java.lang.Object val)
Adds the attribute
attr and it's value val. |
void |
setId1Entity(Identity id1)
Sets the first identity.
|
void |
setId2Entity(Identity id2)
Sets the second identity
|
java.lang.String |
toString()
Returns the string representation of this Relationship.
|
java.lang.String getID1()
java.lang.String getID2()
Identity getId1Entity()
void setId1Entity(Identity id1)
id1 - the first identityIdentity getId2Entity()
void setId2Entity(Identity id2)
id2 - the second identityvoid 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.java.lang.Object getAttribute(java.lang.String attr)
attr.attr - The attribute whose value is to be returned.java.util.Map getAttributes()
map of all attribute-value pair of this identity.java.util.Set getAttributeNames()
java.lang.String toString()
toString in class java.lang.Object