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
-
- All Implemented Interfaces:
Serializable
public class WatchdogClassificationEvent extends WatchdogMetadataElementEvent
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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WatchdogClassificationEvent()Default constructorWatchdogClassificationEvent(WatchdogClassificationEvent 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.ElementClassificationgetChangedClassification()Return the classification that is the subject of the event.ElementClassificationgetPreviousClassification()For UPDATED_CLASSIFICATION_PROPERTIES, return the previous version of the classification (if available.inthashCode()Create a hash code for this element type.voidsetChangedClassification(ElementClassification changedClassification)Set up the classification that is the subject of the event.voidsetPreviousClassification(ElementClassification previousClassification)For UPDATED_CLASSIFICATION_PROPERTIES, set up the previous version of the classification (if available.StringtoString()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 Detail
-
WatchdogClassificationEvent
public WatchdogClassificationEvent()
Default constructor
-
WatchdogClassificationEvent
public WatchdogClassificationEvent(WatchdogClassificationEvent template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getChangedClassification
public ElementClassification getChangedClassification()
Return the classification that is the subject of the event.- Returns:
- classification
-
setChangedClassification
public void setChangedClassification(ElementClassification changedClassification)
Set up the classification that is the subject of the event.- Parameters:
changedClassification- classification
-
getPreviousClassification
public ElementClassification 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
public void setPreviousClassification(ElementClassification previousClassification)
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
public String toString()
Standard toString method.- Overrides:
toStringin classWatchdogMetadataElementEvent- 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 classWatchdogMetadataElementEvent- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classWatchdogMetadataElementEvent- Returns:
- int hash code
-
-