Class 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 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 class java.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 class java.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 class java.lang.Object
        Returns:
        int hash code