Class WatchdogClassificationEvent
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogMetadataElementEvent
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogClassificationEvent
WatchdogClassificationEvent describes the structure of the events passed to the WatchdogGovernanceActionService
that describe changes to classifications attached to metadata elements.
This form of the WatchdogGovernanceEvent is used with the following event types:
- NEW_CLASSIFICATION
- UPDATED_CLASSIFICATION_PROPERTIES
- DELETED_CLASSIFICATION
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the classification that is the subject of the event.For UPDATED_CLASSIFICATION_PROPERTIES, return the previous version of the classification (if available.int
hashCode()
Create a hash code for this element type.void
setChangedClassification
(AttachedClassification changedClassification) Set up the classification that is the subject of the event.void
setPreviousClassification
(AttachedClassification previousClassification) For UPDATED_CLASSIFICATION_PROPERTIES, set up the previous version of the classification (if available.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogMetadataElementEvent
getMetadataElement, getPreviousMetadataElement, setMetadataElement, setPreviousMetadataElement
Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
getEventType, setEventType
-
Constructor Details
-
WatchdogClassificationEvent
public WatchdogClassificationEvent()Default constructor -
WatchdogClassificationEvent
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getChangedClassification
Return the classification that is the subject of the event.- Returns:
- classification
-
setChangedClassification
Set up the classification that is the subject of the event.- Parameters:
changedClassification
- classification
-
getPreviousClassification
For UPDATED_CLASSIFICATION_PROPERTIES, return the previous version of the classification (if available. For all other event type, this is null.- Returns:
- classification
-
setPreviousClassification
For UPDATED_CLASSIFICATION_PROPERTIES, set up the previous version of the classification (if available. For all other event type, this is null.- Parameters:
previousClassification
- classification
-
toString
Standard toString method.- Overrides:
toString
in classWatchdogMetadataElementEvent
- 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 classWatchdogMetadataElementEvent
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classWatchdogMetadataElementEvent
- Returns:
- int hash code
-