Class Relationship
java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.model.Element
org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship
- All Implemented Interfaces:
Serializable
The Relationship object holds properties that are used for displaying a relationship between two assets
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Returns the start element for the relationshipReturns the destination element for the relationshipint
hashCode()
void
setFromEntity
(Element fromEntity) Setup the start element for the relationshipvoid
setToEntity
(Element toEntity) Setup the destination element for the relationshiptoString()
Methods inherited from class org.odpi.openmetadata.accessservices.assetcatalog.model.Element
getAdditionalProperties, getClassifications, getCreatedBy, getCreateTime, getGuid, getName, getOrigin, getParentElement, getProperties, getStatus, getType, getUpdatedBy, getUpdateTime, getUrl, getVersion, setAdditionalProperties, setClassifications, setCreatedBy, setCreateTime, setGuid, setName, setOrigin, setParentElement, setProperties, setStatus, setType, setUpdatedBy, setUpdateTime, setUrl, setVersion
-
Constructor Details
-
Relationship
public Relationship()
-
-
Method Details
-
getFromEntity
Returns the start element for the relationship- Returns:
- the start element for the relationship
-
getToEntity
Returns the destination element for the relationship- Returns:
- the destination element for the relationship
-
setFromEntity
Setup the start element for the relationship- Parameters:
fromEntity
- the start element for the relationship
-
setToEntity
Setup the destination element for the relationship- Parameters:
toEntity
- the destination element for the relationship
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-