Class RelatedElement
java.lang.Object
org.odpi.openmetadata.accessservices.digitalarchitecture.metadataelements.RelatedElement
- All Implemented Interfaces:
Serializable
RelatedElement contains the properties and header for a relationship retrieved from the metadata repository along with the stub
of the related element.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorRelatedElement(RelatedElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStubReturn the element header associated with end 1 of the relationship.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeaderReturn the element header associated with the relationship.Return details of the relationshipinthashCode()Return hash code for this objectvoidsetRelatedElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub relatedElement) Set up the element header associated with end 1 of the relationship.voidsetRelationshipHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader relationshipHeader) Set up the element header associated with the relationship.voidsetRelationshipProperties(RelationshipProperties relationshipProperties) Set up relationship propertiestoString()JSON-style toString
-
Constructor Details
-
RelatedElement
public RelatedElement()Default constructor -
RelatedElement
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getRelationshipHeader
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getRelationshipHeader()Return the element header associated with the relationship.- Returns:
- element header object
-
setRelationshipHeader
public void setRelationshipHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader relationshipHeader) Set up the element header associated with the relationship.- Parameters:
relationshipHeader- element header object
-
getRelationshipProperties
Return details of the relationship- Returns:
- relationship properties
-
setRelationshipProperties
Set up relationship properties- Parameters:
relationshipProperties- relationship properties
-
getRelatedElement
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getRelatedElement()Return the element header associated with end 1 of the relationship.- Returns:
- element stub object
-
setRelatedElement
public void setRelatedElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub relatedElement) Set up the element header associated with end 1 of the relationship.- Parameters:
relatedElement- element stub object
-
toString
JSON-style toString -
equals
Return comparison result based on the content of the properties. -
hashCode
public int hashCode()Return hash code for this object
-