Class AssetElementHeader
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AssetComment,AssetInformalTag,AssetLike,AssetMeaning,AssetRating,AssetReferenceable
public abstract class AssetElementHeader extends AssetPropertyBase
ElementHeader provides the common identifier and type information for all properties objects that link off of the asset and have a guid associated with them. This typically means it is represented by an entity in the metadata repository.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssetElementHeader(AssetDescriptor parentAsset)Constructor used by the subclassesprotectedAssetElementHeader(AssetDescriptor parentAsset, AssetElementHeader assetElementHeader)Copy/clone constructor.protectedAssetElementHeader(AssetDescriptor parentAsset, ElementHeader elementHeaderBean)Bean constructor with parent assetprotectedAssetElementHeader(ElementHeader elementHeaderBean)Bean constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.List<AssetClassification>getAssetClassifications()Return the list of classifications associated with the asset.protected ElementHeadergetElementHeaderBean()Return the element header bean - used during cloningMap<String,Object>getExtendedProperties()Return any properties defined for a sub type that are not explicitly supported by the connected asset API.StringgetGUID()Return the unique id for the properties object.AssetElementTypegetType()Return the element type properties for this properties object.StringgetURL()Returns the URL to access the properties object in the metadata repository.inthashCode()Create a hash code for this element type.protected voidsetBean(ElementHeader elementHeaderBean)Set up the bean that contains the properties of the element header.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Constructor Detail
-
AssetElementHeader
protected AssetElementHeader(AssetDescriptor parentAsset)
Constructor used by the subclasses- Parameters:
parentAsset- descriptor of asset that this property relates to.
-
AssetElementHeader
protected AssetElementHeader(ElementHeader elementHeaderBean)
Bean constructor- Parameters:
elementHeaderBean- bean containing all to the properties
-
AssetElementHeader
protected AssetElementHeader(AssetDescriptor parentAsset, ElementHeader elementHeaderBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetelementHeaderBean- bean containing properties
-
AssetElementHeader
protected AssetElementHeader(AssetDescriptor parentAsset, AssetElementHeader assetElementHeader)
Copy/clone constructor.- Parameters:
parentAsset- descriptor for parent assetassetElementHeader- element to copy
-
-
Method Detail
-
setBean
protected void setBean(ElementHeader elementHeaderBean)
Set up the bean that contains the properties of the element header.- Parameters:
elementHeaderBean- bean containing all of the properties
-
getElementHeaderBean
protected ElementHeader getElementHeaderBean()
Return the element header bean - used during cloning- Returns:
- bean
-
getType
public AssetElementType getType()
Return the element type properties for this properties object. These values are set up by the metadata repository and define details to the metadata entity used to represent this element.- Returns:
- AssetElementType type information.
-
getGUID
public String getGUID()
Return the unique id for the properties object. Null means no guid is assigned.- Returns:
- String unique id
-
getURL
public String getURL()
Returns the URL to access the properties object in the metadata repository. If no url is available then null is returned.- Returns:
- String URL
-
getAssetClassifications
public List<AssetClassification> getAssetClassifications()
Return the list of classifications associated with the asset.- Returns:
- Classifications list of classifications
-
getExtendedProperties
public Map<String,Object> getExtendedProperties()
Return any properties defined for a sub type that are not explicitly supported by the connected asset API.- Returns:
- property map
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAssetPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classAssetPropertyBase- Returns:
- int hash code
-
-