Class AssetPropertyBase
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
The AssetPropertyBase class is a base class for all properties that link off of the connected asset.
It manages the information about the parent asset.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AssetPropertyBase
(AssetDescriptor parentAsset) Typical constructor that sets the link to the connected asset to nullprotected
AssetPropertyBase
(AssetDescriptor parentAsset, AssetPropertyBase template) Copy/clone constructor sets up details of the parent asset from the template -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.protected AssetDescriptor
Return the asset descriptor of the parent asset.protected String
Return the name of the connected asset that this property is connected to.protected String
Return the type of the connected asset that this property relates to.int
hashCode()
Return code value representing the contents of this object.
-
Field Details
-
parentAsset
-
-
Constructor Details
-
AssetPropertyBase
Typical constructor that sets the link to the connected asset to null- Parameters:
parentAsset
- descriptor of asset that this property relates to.
-
AssetPropertyBase
Copy/clone constructor sets up details of the parent asset from the template- Parameters:
parentAsset
- descriptor of asset that his property relates to.template
- AssetPropertyBase to copy
-
-
Method Details
-
getParentAsset
Return the asset descriptor of the parent asset.- Returns:
- AssetDescriptor
-
getParentAssetName
Return the name of the connected asset that this property is connected to.- Returns:
- String name of the connected asset
-
getParentAssetTypeName
Return the type of the connected asset that this property relates to.- Returns:
- String name of the connected asset's type.
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classAssetPropertyElementBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return code value representing the contents of this object.- Overrides:
hashCode
in classAssetPropertyElementBase
- Returns:
- int
-