Class GraphRelation
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.graph.GraphRelation
-
public class GraphRelation extends java.lang.ObjectContains 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 booleanequals(java.lang.Object obj)java.lang.IntegergetDepth()Get depthjava.lang.StringgetParent()Get parent unitjava.lang.StringgetParentOriginatingAgency()Get parentOriginatingAgencyjava.lang.StringgetUnit()Get unitinthashCode()voidsetDepth(java.lang.Integer depth)Set depthvoidsetParent(java.lang.String parent)Set parent unitvoidsetParentOriginatingAgency(java.lang.String parentOriginatingAgency)Set parentOriginatingAgencyvoidsetUnit(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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-