Class ElementClassificationHeader
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementClassificationHeader
- Direct Known Subclasses:
AttachedClassification
,ElementClassification
,GovernanceClassificationBase
,LatestChange
,SecurityTags
The ElementClassificationHeader bean describes the header for a classification associated with an element.
The ElementClassification is a generic classification. Then classes such as SecurityTags are specifically featured
classifications.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return whether the classification was added explicitly to this asset or propagated from another entity.Return the entity guid that the classification was propagated from (or null if not propagated).int
hashCode()
Create a hash code for this element type.void
setClassificationOrigin
(ClassificationOrigin classificationOrigin) Set up the setting for classification originvoid
setClassificationOriginGUID
(String classificationOriginGUID) Set up the origin of the classification.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
ElementClassificationHeader
public ElementClassificationHeader()Default constructor -
ElementClassificationHeader
Copy/clone constructor- Parameters:
template
- template to copy
-
ElementClassificationHeader
Copy/clone constructor- Parameters:
template
- template to copy
-
-
Method Details
-
getClassificationOrigin
Return whether the classification was added explicitly to this asset or propagated from another entity.- Returns:
- classification origin enum
-
setClassificationOrigin
Set up the setting for classification origin- Parameters:
classificationOrigin
- enum
-
getClassificationOriginGUID
Return the entity guid that the classification was propagated from (or null if not propagated).- Returns:
- string guid
-
setClassificationOriginGUID
Set up the origin of the classification.- Parameters:
classificationOriginGUID
- string guid
-
toString
Standard toString method.- Overrides:
toString
in classElementControlHeader
- 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 classElementControlHeader
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classElementControlHeader
- Returns:
- int hash code
-