Class WatchdogGovernanceEvent
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
WatchdogMetadataElementEvent
,WatchdogRelatedElementsEvent
public abstract class WatchdogGovernanceEvent extends java.lang.Object implements java.io.Serializable
WatchdogGovernanceEvent describes the structure of the events passed to the WatchdogGovernanceActionService.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WatchdogGovernanceEvent()
Default constructorWatchdogGovernanceEvent(WatchdogGovernanceEvent 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.WatchdogEventType
getEventType()
Return the type of event (used to get the class to cast to).int
hashCode()
Create a hash code for this element type.void
setEventType(WatchdogEventType eventType)
Set up the event type.java.lang.String
toString()
Standard toString method.
-
-
-
Constructor Detail
-
WatchdogGovernanceEvent
public WatchdogGovernanceEvent()
Default constructor
-
WatchdogGovernanceEvent
public WatchdogGovernanceEvent(WatchdogGovernanceEvent template)
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Detail
-
getEventType
public WatchdogEventType getEventType()
Return the type of event (used to get the class to cast to).- Returns:
- event type
-
setEventType
public void setEventType(WatchdogEventType eventType)
Set up the event type. This should tie up with the subclass of the event.- Parameters:
eventType
- event type
-
toString
public java.lang.String toString()
Standard toString method.- Overrides:
toString
in classjava.lang.Object
- 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 classjava.lang.Object
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- int hash code
-
-