Class GraphRelation
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.graph.GraphRelation
-
public class GraphRelation extends java.lang.Object
Contains information of relation child -> parent unit: the current treated unit unitOriginatingAgency: the originatingAgency of the current unit parent: the parent unit of the current treated unit parentOriginatingAgency: the originatingAgency of the parent unit depth: the depth of the relation AU1 / \ \ / \ \ AU2 AU3 \ \ / \ \ / | AU4 / \ / \ / AU5 AU1/AU2 depth = 1 AU1/AU5 depth = 1 AU1/AU3 depth = 1 AU2/AU4 depth = 2 AU3/AU4 depth = 2 AU4/AU5 depth = 3 (ignored as we have already /AU5 with depth 1)
-
-
Constructor Summary
Constructors Constructor Description GraphRelation(java.lang.String unit, java.lang.String parent, java.lang.String parentOriginatingAgency, java.lang.Integer depth)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.Integer
getDepth()
Get depthjava.lang.String
getParent()
Get parent unitjava.lang.String
getParentOriginatingAgency()
Get parentOriginatingAgencyjava.lang.String
getUnit()
Get unitint
hashCode()
void
setDepth(java.lang.Integer depth)
Set depthvoid
setParent(java.lang.String parent)
Set parent unitvoid
setParentOriginatingAgency(java.lang.String parentOriginatingAgency)
Set parentOriginatingAgencyvoid
setUnit(java.lang.String unit)
Set unit
-
-
-
Method Detail
-
getUnit
public java.lang.String getUnit()
Get unit- Returns:
- unit
-
setUnit
public void setUnit(java.lang.String unit)
Set unit- Parameters:
unit
-
-
getParent
public java.lang.String getParent()
Get parent unit- Returns:
- parent
-
setParent
public void setParent(java.lang.String parent)
Set parent unit- Parameters:
parent
-
-
getParentOriginatingAgency
public java.lang.String getParentOriginatingAgency()
Get parentOriginatingAgency- Returns:
- parentOriginatingAgency
-
setParentOriginatingAgency
public void setParentOriginatingAgency(java.lang.String parentOriginatingAgency)
Set parentOriginatingAgency- Parameters:
parentOriginatingAgency
-
-
getDepth
public java.lang.Integer getDepth()
Get depth- Returns:
- depth
-
setDepth
public void setDepth(java.lang.Integer depth)
Set depth- Parameters:
depth
-
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-