Class AssetGraph
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.GovernedReferenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset
org.odpi.openmetadata.accessservices.assetconsumer.properties.AssetGraph
public class AssetGraph
extends org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset
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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAssetGraph(AssetGraph template) Copy/clone constructor.AssetGraph(org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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.inthashCode()Return hash code based on properties.voidsetAnchoredElements(List<MetadataElement> anchoredElements) Set up the list of elements that are anchored to the asset.voidsetRelationships(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.connectors.properties.beans.Asset
getAbbreviation, getDisplayDescription, getDisplayName, getDisplaySummary, getResourceDescription, getResourceName, getUsage, getVersionIdentifier, setAbbreviation, setDisplayDescription, setDisplayName, setDisplaySummary, setResourceDescription, setResourceName, setUsage, setVersionIdentifierMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.GovernedReferenceable
getMeanings, getSearchKeywords, setMeanings, setSearchKeywordsMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNameMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, setExtendedPropertiesMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUIDMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersionsMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
AssetGraph
public AssetGraph()Default constructor -
AssetGraph
public AssetGraph(org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset template) 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:
toStringin classorg.odpi.openmetadata.frameworks.connectors.properties.beans.Asset- 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:
equalsin classorg.odpi.openmetadata.frameworks.connectors.properties.beans.Asset- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classorg.odpi.openmetadata.frameworks.connectors.properties.beans.Asset- Returns:
- int
-