Class ElementClassification
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementClassificationHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementClassification
The ElementClassification bean describes a single classification associated with an element.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorElementClassification
(ElementClassification template) Copy/clone constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the name of the classificationReturn a collection of the additional stored properties for the classification.int
hashCode()
Create a hash code for this element type.void
setClassificationName
(String classificationName) Set up the name of the classification.void
setClassificationProperties
(Map<String, Object> classificationProperties) Set up a collection of the additional stored properties for the classification.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementClassificationHeader
getClassificationOrigin, getClassificationOriginGUID, setClassificationOrigin, setClassificationOriginGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
ElementClassification
public ElementClassification()Default constructor -
ElementClassification
Copy/clone constructor- Parameters:
template
- template to copy
-
ElementClassification
Copy/clone constructor- Parameters:
template
- template to copy
-
-
Method Details
-
setClassificationName
Set up the name of the classification. This name is the type name defined in a ClassificationDef type definition.- Parameters:
classificationName
- name of classification
-
getClassificationName
Return the name of the classification- Returns:
- String name
-
setClassificationProperties
Set up a collection of the additional stored properties for the classification. If no stored properties are present then null is returned.- Parameters:
classificationProperties
- properties for the classification
-
getClassificationProperties
Return a collection of the additional stored properties for the classification. If no stored properties are present then null is returned.- Returns:
- properties map
-
toString
Standard toString method.- Overrides:
toString
in classElementClassificationHeader
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classElementClassificationHeader
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classElementClassificationHeader
- Returns:
- int hash code
-