Class OMRSEventBean
- 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringprotocolVersionId
-
Constructor Summary
Constructors Constructor Description OMRSEventBean()Default constructor used when recreating events from JSON StringsOMRSEventBean(String protocolVersionId)Constructor used when an instance of the subclass is created.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProtocolVersionId()Return the protocol version identifier for this event.voidsetProtocolVersionId(String protocolVersionId)Set up the protocol version id for this event.StringtoString()JSON-style toString.
-
-
-
Field Detail
-
protocolVersionId
protected String protocolVersionId
-
-
Constructor Detail
-
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 Detail
-
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
-
-