Class Relationship
- java.lang.Object
-
- org.apache.directory.fortress.core.model.Relationship
-
- All Implemented Interfaces:
Serializable
public class Relationship extends Object implements Serializable
Contains a parent child data entity that is used for hierarchical processing. This entity is used to construct edges in graphs.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Relationship()
No argument constructor is necessary for Ant admin utilityRelationship(String child, String parent)
Construct a new relationship given a child and parent name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object thatObj)
Matches the parent and child values from two Relationship entities.String
getChild()
Return the child name.String
getParent()
Return the parent name.int
hashCode()
Compute the hashcode on the parent and child values.void
setChild(String child)
Set the child name.void
setParent(String parent)
Set the parent name.String
toString()
-
-
-
Method Detail
-
getChild
public String getChild()
Return the child name.- Returns:
- name of child.
-
setChild
public void setChild(String child)
Set the child name.- Parameters:
child
- contains the name of child.
-
getParent
public String getParent()
Return the parent name.- Returns:
- name of parent.
-
setParent
public void setParent(String parent)
Set the parent name.- Parameters:
parent
- contains the name of parent.
-
hashCode
public final int hashCode()
Compute the hashcode on the parent and child values. This is used for list processing.
-
equals
public boolean equals(Object thatObj)
Matches the parent and child values from two Relationship entities.
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-