Class MetadataRelationship
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.MetadataRelationship
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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorMetadataRelationship
(ElementHeader template) Copy/clone constructorMetadataRelationship
(MetadataRelationship template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.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
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, Object> properties) Set up the properties for the element.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
MetadataRelationship
public MetadataRelationship()Default constructor -
MetadataRelationship
Copy/clone constructor- Parameters:
template
- template to copy
-
MetadataRelationship
Copy/clone constructor- Parameters:
template
- template to copy
-
-
Method Details
-
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.- Overrides:
toString
in classElementHeader
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classElementHeader
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classElementHeader
- Returns:
- int hash code
-