Class AssetClassification
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetClassification
-
- All Implemented Interfaces:
Serializable
public class AssetClassification extends AssetPropertyBase
The Classification class stores information about a classification assigned to an asset. The Classification has a name and some properties. It also stores the typename of the asset it is connected to for debug purposes. Note: it is not valid to have a classification with a null or blank name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ElementClassificationclassificationBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Modifier Constructor Description AssetClassification(AssetDescriptor parentAsset, AssetClassification templateClassification)Copy/clone Constructor sets up new classification using values from the templateprotectedAssetClassification(AssetDescriptor parentAsset, ElementClassification classification)Bean constructor with parent assetprotectedAssetClassification(ElementClassification classification)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.protected ElementClassificationgetClassificationBean()Return the classification bean.StringgetName()Return the name of the classificationMap<String,Object>getProperties()Returns a collection of the additional stored properties for the classification.inthashCode()Create a hash code for this element type.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
classificationBean
protected ElementClassification classificationBean
-
-
Constructor Detail
-
AssetClassification
protected AssetClassification(ElementClassification classification)
Bean constructor- Parameters:
classification- bean containing the properties
-
AssetClassification
protected AssetClassification(AssetDescriptor parentAsset, ElementClassification classification)
Bean constructor with parent asset- Parameters:
parentAsset- details of the asset that this classification is linked to.classification- bean containing the properties
-
AssetClassification
public AssetClassification(AssetDescriptor parentAsset, AssetClassification templateClassification)
Copy/clone Constructor sets up new classification using values from the template- Parameters:
parentAsset- details of the asset that this classification is linked to.templateClassification- object to copy
-
-
Method Detail
-
getClassificationBean
protected ElementClassification getClassificationBean()
Return the classification bean. This is used for cloning an AssetClassification.- Returns:
- classification bean
-
getName
public String getName()
Return the name of the classification- Returns:
- name of classification
-
getProperties
public Map<String,Object> getProperties()
Returns a collection of the additional stored properties for the classification. If no stored properties are present then null is returned.- Returns:
- properties for the classification
-
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
-
-