Class AssetDescriptor
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
org.odpi.openmetadata.frameworks.connectors.properties.AssetDescriptor
This is the base class for a connected asset. It is passed to all the embedded property objects so the name
and type can be used for error messages and other diagnostics. It also carries the URL of the asset in the
metadata repository where this is known to enable properties to be retrieved on request.
-
Constructor Summary
ConstructorsConstructorDescriptionAssetDescriptor(AssetDescriptor templateAssetDescriptor) Copy/clone Constructor - used to copy the asset descriptor for a new consumer.AssetDescriptor(Asset assetBean) Bean constructor - the asset descriptor is effectively empty - and the protected set methods need to be called to add useful content to it. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the name of the asset - for use in messages and other diagnostics.Return the list of type names for this type's supertypes.Return the name of the asset's type - for use in messages and other diagnostics.inthashCode()Hash of properties
-
Constructor Details
-
AssetDescriptor
Bean constructor - the asset descriptor is effectively empty - and the protected set methods need to be called to add useful content to it.- Parameters:
assetBean- bean containing all the properties
-
AssetDescriptor
Copy/clone Constructor - used to copy the asset descriptor for a new consumer.- Parameters:
templateAssetDescriptor- template asset descriptor to copy.
-
-
Method Details
-
getAssetName
Return the name of the asset - for use in messages and other diagnostics.- Returns:
- String asset name
-
getAssetTypeName
Return the name of the asset's type - for use in messages and other diagnostics.- Returns:
- String asset type name
-
getAssetSuperTypeNames
Return the list of type names for this type's supertypes.- Returns:
- list of type names
-
equals
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()Hash of properties- Overrides:
hashCodein classAssetPropertyElementBase- Returns:
- int
-