Class OpenMetadataElementGraph
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElementGraph
OpenMetadataElementGraph is used to return an open metadata element along with all of its anchored elements
and the relationships that they have between one another and to other elements.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorOpenMetadataElementGraph
(OpenMetadataElement template) Copy/clone constructor.Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the list of elements that are anchored to the asset.Return the mermaid string used to render a graph.Return the relationships that connect the anchored elements to the asset, to each other, and to other open metadata elements.int
hashCode()
Return hash code based on properties.void
setAnchoredElements
(List<OpenMetadataElement> anchoredElements) Set up the list of elements that are anchored to the asset.void
setMermaidGraph
(String mermaidGraph) Set up mermaid string used to render a graph.void
setRelationships
(List<OpenMetadataRelationship> relationships) Set up the relationships that connect the anchored elements to the asset, to each other, and to other open metadata elements.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement
getClassifications, getEffectiveFromTime, getEffectiveToTime, getElementGUID, getElementProperties, setClassifications, setEffectiveFromTime, setEffectiveToTime, setElementGUID, setElementProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
OpenMetadataElementGraph
public OpenMetadataElementGraph()Default constructor -
OpenMetadataElementGraph
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- template values for asset
-
OpenMetadataElementGraph
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- template values for asset graph
-
-
Method Details
-
getAnchoredElements
Return the list of elements that are anchored to the asset.- Returns:
- anchored elements
-
setAnchoredElements
Set up the list of elements that are anchored to the asset.- Parameters:
anchoredElements
- anchored elements
-
getRelationships
Return the relationships that connect the anchored elements to the asset, to each other, and to other open metadata elements.- Returns:
- relationships
-
setRelationships
Set up the relationships that connect the anchored elements to the asset, to each other, and to other open metadata elements.- Parameters:
relationships
- relationships
-
getMermaidGraph
Return the mermaid string used to render a graph.- Returns:
- string in Mermaid markdown
-
setMermaidGraph
Set up mermaid string used to render a graph.- Parameters:
mermaidGraph
- string in Mermaid markdown
-
toString
Standard toString method.- Overrides:
toString
in classOpenMetadataElement
- 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 classOpenMetadataElement
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classOpenMetadataElement
- Returns:
- int
-