Class AssetGraph
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetGraph
- All Implemented Interfaces:
MetadataElement
AssetGraph is used to return an asset along with all of its anchored elements and the relationships
that they have between one another and to other elements.
-
Constructor Summary
ConstructorDescriptionDefault constructorAssetGraph
(AssetElement template) Copy/clone constructor.AssetGraph
(AssetGraph template) 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 relationships that connector 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<MetadataElementSummary> anchoredElements) Set up the list of elements that are anchored to the asset.void
setRelationships
(List<MetadataRelationship> relationships) Set up the relationships that connector 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.openmetadata.metadataelements.AssetElement
getElementHeader, getProperties, setElementHeader, setProperties
-
Constructor Details
-
AssetGraph
public AssetGraph()Default constructor -
AssetGraph
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- template values for asset
-
AssetGraph
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 connector the anchored elements to the asset, to each other, and to other open metadata elements.- Returns:
- relationships
-
setRelationships
Set up the relationships that connector the anchored elements to the asset, to each other, and to other open metadata elements.- Parameters:
relationships
- relationships
-
toString
Standard toString method.- Overrides:
toString
in classAssetElement
- 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 classAssetElement
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classAssetElement
- Returns:
- int
-