Class Edge
java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.Edge
Edge describes a relationship in the lineage graph.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.getFrom()
Return the identifier of hte element that the edge starts at.getId()
Return the identifier of the edge.getLabel()
Set up the label for the edge.getTo()
Return the identifier of the element that the end ends at.getType()
Return the type of the edge.int
hashCode()
Return hash code based on properties.void
Set up the identifier of the element that the edge starts at.void
Set up the identifier of the edge.void
Return the label for the edge.void
Set up the identifier of the element that the end ends at.void
Set up the type of the edge.toString()
Standard toString method.
-
Constructor Details
-
Edge
Construct a simple edge.- Parameters:
from
- identifier of the starting elementto
- identifier of the destination
-
Edge
Construct an edge.- Parameters:
id
- identifier of the edgefrom
- identifier of the starting elementto
- identifier of the destinationlabel
- label for the edge
-
-
Method Details
-
getId
Return the identifier of the edge.- Returns:
- guid
-
setId
Set up the identifier of the edge.- Parameters:
id
- guid
-
getFrom
Return the identifier of hte element that the edge starts at.- Returns:
- guid
-
setFrom
Set up the identifier of the element that the edge starts at.- Parameters:
from
- guid
-
getTo
Return the identifier of the element that the end ends at.- Returns:
- guid
-
setTo
Set up the identifier of the element that the end ends at.- Parameters:
to
- guid
-
getLabel
Set up the label for the edge.- Returns:
- name
-
setLabel
Return the label for the edge.- Parameters:
label
- name
-
getType
Return the type of the edge.- Returns:
- name
-
setType
Set up the type of the edge.- Parameters:
type
- name
-
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties. -
toString
Standard toString method.
-