Class MetadataRelationshipSummary
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.MetadataRelationshipSummary
- All Implemented Interfaces:
MetadataElement
MetadataRelationship describes a relationship between two metadata elements.
These relationships are directional (end1->end1) - although it is possible to navigate the relationships
in either direction.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the element header associated with the properties.getEnd1()
Return the summary of the metadata element at end 1 of the relationship.getEnd2()
Return the summary of the metadata element at end 2 of the relationship.Return a collection of the properties for the element.int
hashCode()
Create a hash code for this element type.void
setElementHeader
(ElementHeader elementHeader) Set up the element header associated with the properties.void
setEnd1
(ElementStub end1) Set up the summary of the metadata element at end 1 of the relationship.void
setEnd2
(ElementStub end2) Set up the summary of the metadata element at end 2 of the relationship.void
setProperties
(Map<String, String> properties) Set up the properties for the element.toString()
Standard toString method.
-
Constructor Details
-
MetadataRelationshipSummary
public MetadataRelationshipSummary()Default constructor -
MetadataRelationshipSummary
Copy/clone constructor- Parameters:
template
- template to copy
-
-
Method Details
-
getElementHeader
Return the element header associated with the properties.- Specified by:
getElementHeader
in interfaceMetadataElement
- Returns:
- element header object
-
setElementHeader
Set up the element header associated with the properties.- Specified by:
setElementHeader
in interfaceMetadataElement
- Parameters:
elementHeader
- element header object
-
setProperties
Set up the properties for the element. If no stored properties are present then null is returned.- Parameters:
properties
- properties for the classification
-
getProperties
Return a collection of the properties for the element. If no stored properties are present then null is returned.- Returns:
- properties map
-
getEnd1
Return the summary of the metadata element at end 1 of the relationship.- Returns:
- element stub
-
setEnd1
Set up the summary of the metadata element at end 1 of the relationship.- Parameters:
end1
- element stub
-
getEnd2
Return the summary of the metadata element at end 2 of the relationship.- Returns:
- element stub
-
setEnd2
Set up the summary of the metadata element at end 2 of the relationship.- Parameters:
end2
- element stub
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-