Class DigitalArchitectureOutTopicEvent
java.lang.Object
org.odpi.openmetadata.accessservices.digitalarchitecture.events.DigitalArchitectureOutTopicEvent
DigitalArchitectureOutTopicEvent describes the structure of the events emitted by the Digital Architecture OMAS that are about assets.
-
Constructor Summary
ConstructorDescriptionDefault ConstructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the name of the classification if the event relates to classifications.Return details of the subject of the event.Return the map of properties for the element provided with the event.Return the time that the element was updated.Return the event type.long
Return the event version id.Return the property map for the previous version of a classification's properties (used for reclassify events).Return the previous version of the element's header (if the event is related to an element update).Return the previous version of the element's properties (if the event is related to an element update).int
hashCode()
Create a hash code for this element type.void
setClassificationName
(String classificationName) Set up the name of the classification if the event relates to classifications.void
setElementHeader
(ElementHeader elementHeader) Set up details of the subject of the event.void
setElementProperties
(Map<String, Object> elementProperties) Set up the map of properties for the element provided with the event.void
setEventTime
(Date eventTime) Set up the time that the element was updated.void
setEventType
(DigitalArchitectureEventType eventType) Set up the event type.void
setEventVersionId
(long eventVersionId) Set up the event version id.void
setPreviousClassificationProperties
(Map<String, Object> previousClassificationProperties) Set up the property map for the previous version of a classification's properties (used for reclassify events).void
setPreviousElementHeader
(ElementHeader previousElementHeader) Set up the previous version of the element's header (if the event is related to an element update).void
setPreviousElementProperties
(Map<String, Object> previousElementProperties) Set up the previous version of the element's properties (if the event is related to an element update).toString()
Standard toString method.
-
Constructor Details
-
DigitalArchitectureOutTopicEvent
public DigitalArchitectureOutTopicEvent()Default Constructor -
DigitalArchitectureOutTopicEvent
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getEventVersionId
public long getEventVersionId()Return the event version id.- Returns:
- long
-
setEventVersionId
public void setEventVersionId(long eventVersionId) Set up the event version id.- Parameters:
eventVersionId
- long
-
getEventType
Return the event type.- Returns:
- the event type enum
-
setEventType
Set up the event type.- Parameters:
eventType
- event type enum
-
getEventTime
Return the time that the element was updated.- Returns:
- date/time
-
setEventTime
Set up the time that the element was updated.- Parameters:
eventTime
- date/time
-
getElementHeader
Return details of the subject of the event.- Returns:
- element header
-
setElementHeader
Set up details of the subject of the event.- Parameters:
elementHeader
- element header
-
getElementProperties
Return the map of properties for the element provided with the event. These values are not guaranteed to be current.- Returns:
- property map
-
setElementProperties
Set up the map of properties for the element provided with the event. These values are not guaranteed to be current.- Parameters:
elementProperties
- property map
-
getPreviousElementHeader
Return the previous version of the element's header (if the event is related to an element update).- Returns:
- element header
-
setPreviousElementHeader
Set up the previous version of the element's header (if the event is related to an element update).- Parameters:
previousElementHeader
- element header
-
getPreviousElementProperties
Return the previous version of the element's properties (if the event is related to an element update).- Returns:
- property map
-
setPreviousElementProperties
Set up the previous version of the element's properties (if the event is related to an element update).- Parameters:
previousElementProperties
- property map
-
getClassificationName
Return the name of the classification if the event relates to classifications.- Returns:
- string name
-
setClassificationName
Set up the name of the classification if the event relates to classifications.- Parameters:
classificationName
- string name
-
getPreviousClassificationProperties
Return the property map for the previous version of a classification's properties (used for reclassify events).- Returns:
- property map
-
setPreviousClassificationProperties
public void setPreviousClassificationProperties(Map<String, Object> previousClassificationProperties) Set up the property map for the previous version of a classification's properties (used for reclassify events).- Parameters:
previousClassificationProperties
- property map
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-