Class WatchdogGovernanceEvent

java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.events.WatchdogGovernanceEvent
Direct Known Subclasses:
WatchdogMetadataElementEvent, WatchdogRelatedElementsEvent

public abstract class WatchdogGovernanceEvent extends Object
WatchdogGovernanceEvent describes the structure of the events passed to the WatchdogGovernanceActionService.
  • Constructor Details

    • WatchdogGovernanceEvent

      public WatchdogGovernanceEvent()
      Default constructor
    • WatchdogGovernanceEvent

      public WatchdogGovernanceEvent(WatchdogGovernanceEvent template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • 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 String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      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:
      equals in class 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 class Object
      Returns:
      int hash code