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:
java.io.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 boolean
equals(java.lang.Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.AttachedClassification
getChangedClassification()
Return the classification that is the subject of the event.AttachedClassification
getPreviousClassification()
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.java.lang.String
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 Detail
-
WatchdogClassificationEvent
public WatchdogClassificationEvent()
Default constructor
-
WatchdogClassificationEvent
public WatchdogClassificationEvent(WatchdogClassificationEvent template)
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Detail
-
getChangedClassification
public AttachedClassification getChangedClassification()
Return the classification that is the subject of the event.- Returns:
- classification
-
setChangedClassification
public void setChangedClassification(AttachedClassification changedClassification)
Set up the classification that is the subject of the event.- Parameters:
changedClassification
- classification
-
getPreviousClassification
public AttachedClassification 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(AttachedClassification 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 java.lang.String toString()
Standard toString method.- Overrides:
toString
in classWatchdogMetadataElementEvent
- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(java.lang.Object objectToCompare)
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
-
-