java.lang.Object
org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OMRSEventV1

public abstract class OMRSEventBean extends Object implements Serializable
OMRSEventBean provides a common root for all bean versions of the OMRSEvent. It has no content beyond the event's protocol version, but the Jackson annotations declare the valid supported versions in this server.
See Also:
  • Field Details

    • protocolVersionId

      protected String protocolVersionId
  • Constructor Details

    • OMRSEventBean

      public OMRSEventBean()
      Default constructor used when recreating events from JSON Strings
    • OMRSEventBean

      public OMRSEventBean(String protocolVersionId)
      Constructor used when an instance of the subclass is created.
      Parameters:
      protocolVersionId - version name
  • Method Details

    • getProtocolVersionId

      public String getProtocolVersionId()
      Return the protocol version identifier for this event.
      Returns:
      version name
    • setProtocolVersionId

      public void setProtocolVersionId(String protocolVersionId)
      Set up the protocol version id for this event.
      Parameters:
      protocolVersionId - version name
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class Object
      Returns:
      list of properties and their values.