Class Relationship
java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.Element
org.odpi.openmetadata.viewservices.assetcatalog.beans.Relationship
The Relationship object holds properties that are used for displaying a relationship between two assets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Returns the start element for the relationship.Returns the destination element for the relationship.inthashCode()Return hash code based on properties.voidsetFromEntity(Element fromEntity) Set up the start element for the relationship.voidsetToEntity(Element toEntity) Set up the destination element for the relationship.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.viewservices.assetcatalog.beans.Element
getAdditionalProperties, getAnchorElement, getClassifications, getCreatedBy, getCreateTime, getGuid, getName, getOrigin, getParentElement, getProperties, getStatus, getType, getUpdatedBy, getUpdateTime, getUrl, getVersion, setAdditionalProperties, setAnchorElement, setClassifications, setCreatedBy, setCreateTime, setGuid, setName, setOrigin, setParentElement, setProperties, setStatus, setType, setUpdatedBy, setUpdateTime, setUrl, setVersion
-
Constructor Details
-
Relationship
public Relationship()Default constructor.
-
-
Method Details
-
getFromEntity
Returns the start element for the relationship.- Returns:
- the start element for the relationship
-
setFromEntity
Set up the start element for the relationship.- Parameters:
fromEntity- the start element for the relationship
-
getToEntity
Returns the destination element for the relationship.- Returns:
- the destination element for the relationship
-
setToEntity
Set up the destination element for the relationship.- Parameters:
toEntity- the destination element for the relationship
-
toString
Standard toString method. -
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.
-