Class RelationshipImpl
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipImpl
-
- All Implemented Interfaces:
Serializable
,Relationship
public class RelationshipImpl extends Object implements Relationship, Serializable
Relationship implementation- Since:
- 2.3
- Author:
- Tuna Aksoy
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RelationshipImpl(String uniqueName, NodeRef source, NodeRef target)
Constructor for creating a relationship
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
NodeRef
getSource()
Gets the source of the relationshipNodeRef
getTarget()
Gets the target of the relationshipString
getUniqueName()
Gets the unique name of the relationshipint
hashCode()
-
-
-
Method Detail
-
getUniqueName
public String getUniqueName()
Description copied from interface:Relationship
Gets the unique name of the relationship- Specified by:
getUniqueName
in interfaceRelationship
- Returns:
- The unique name of the relationship
- See Also:
Relationship.getUniqueName()
-
getSource
public NodeRef getSource()
Description copied from interface:Relationship
Gets the source of the relationship- Specified by:
getSource
in interfaceRelationship
- Returns:
- The source of the relationship
- See Also:
Relationship.getSource()
-
getTarget
public NodeRef getTarget()
Description copied from interface:Relationship
Gets the target of the relationship- Specified by:
getTarget
in interfaceRelationship
- Returns:
- The target of the relationship
- See Also:
Relationship.getTarget()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
-