Class AssetPropertyBase
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- All Implemented Interfaces:
Serializable
public abstract class AssetPropertyBase extends AssetPropertyElementBase
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AssetDescriptorparentAsset
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssetPropertyBase(AssetDescriptor parentAsset)Typical constructor that sets the link to the connected asset to nullprotectedAssetPropertyBase(AssetDescriptor parentAsset, AssetPropertyBase template)Copy/clone constructor sets up details of the parent asset from the template
-
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.protected AssetDescriptorgetParentAsset()Return the asset descriptor of the parent asset.protected StringgetParentAssetName()Return the name of the connected asset that this property is connected to.protected StringgetParentAssetTypeName()Return the type of the connected asset that this property relates to.inthashCode()Return code value representing the contents of this object.
-
-
-
Field Detail
-
parentAsset
protected AssetDescriptor parentAsset
-
-
Constructor Detail
-
AssetPropertyBase
protected AssetPropertyBase(AssetDescriptor parentAsset)
Typical constructor that sets the link to the connected asset to null- Parameters:
parentAsset- descriptor of asset that this property relates to.
-
AssetPropertyBase
protected AssetPropertyBase(AssetDescriptor parentAsset, AssetPropertyBase template)
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 Detail
-
getParentAsset
protected AssetDescriptor getParentAsset()
Return the asset descriptor of the parent asset.- Returns:
- AssetDescriptor
-
getParentAssetName
protected String getParentAssetName()
Return the name of the connected asset that this property is connected to.- Returns:
- String name of the connected asset
-
getParentAssetTypeName
protected String getParentAssetTypeName()
Return the type of the connected asset that this property relates to.- Returns:
- String name of the connected asset's type.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAssetPropertyElementBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return code value representing the contents of this object.- Overrides:
hashCodein classAssetPropertyElementBase- Returns:
- int
-
-