Class Event
java.lang.Object
de.julianweinelt.datacat.dbx.api.events.Event
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels the event if it is cancellable.Gets a property of the event.Marks the event as non-cancellable.Sets a property for the event.
-
Constructor Details
-
Event
-
-
Method Details
-
nonCancellable
Marks the event as non-cancellable.- Returns:
- The current Event instance for method chaining.
-
set
Sets a property for the event.- Parameters:
key- The property key.value- The property value.- Returns:
- The current Event instance for method chaining.
-
get
Gets a property of the event.- Parameters:
key- The property key.- Returns:
- The EventProperty associated with the key.
- Throws:
IllegalArgumentException- if the key does not exist.
-
cancel
Cancels the event if it is cancellable.- Throws:
IllegalStateException- if the event is not cancellable.
-