Class ElementClassificationHeader
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementClassificationHeader
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ElementClassification,GovernanceClassificationBase,LatestChange,SecurityTags
public class ElementClassificationHeader extends ElementControlHeader
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.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description ElementClassificationHeader()Default constructorElementClassificationHeader(ElementClassificationHeader template)Copy/clone 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.ClassificationOrigingetClassificationOrigin()Return whether the classification was added explicitly to this asset or propagated from another entity.StringgetClassificationOriginGUID()Return the entity guid that the classification was propagated from (or null if not propagated).inthashCode()Create a hash code for this element type.voidsetClassificationOrigin(ClassificationOrigin classificationOrigin)Set up the setting for classification originvoidsetClassificationOriginGUID(String classificationOriginGUID)Set up the origin of the classification.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersions
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
ElementClassificationHeader
public ElementClassificationHeader()
Default constructor
-
ElementClassificationHeader
public ElementClassificationHeader(ElementClassificationHeader template)
Copy/clone constructor- Parameters:
template- template to copy
-
-
Method Detail
-
getClassificationOrigin
public ClassificationOrigin getClassificationOrigin()
Return whether the classification was added explicitly to this asset or propagated from another entity.- Returns:
- classification origin enum
-
setClassificationOrigin
public void setClassificationOrigin(ClassificationOrigin classificationOrigin)
Set up the setting for classification origin- Parameters:
classificationOrigin- enum
-
getClassificationOriginGUID
public String getClassificationOriginGUID()
Return the entity guid that the classification was propagated from (or null if not propagated).- Returns:
- string guid
-
setClassificationOriginGUID
public void setClassificationOriginGUID(String classificationOriginGUID)
Set up the origin of the classification.- Parameters:
classificationOriginGUID- string guid
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classElementControlHeader- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classElementControlHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classElementControlHeader- Returns:
- int hash code
-
-