A - The type of the action stored in the event.EM - The type of the EventMetaDataSRC - The type of the source in question.public abstract class AbstractActionMetaDataEvent<A,EM extends EventMetaData,SRC> extends AbstractActionEvent<A,SRC> implements GenericActionMetaDataEvent<A,EM,SRC>
GenericActionEvent storing a defined set of
EventMetaData.
TIPP: In order to distinguish AbstractActionMetaDataEvent instances
from each other, create an actions enumeration, enumerating the various event
actions you support. Pass the actual action you intend to notify upon to the
according constructor, as an Observer you may use the declarative
method EventMatcherSugar.actionEqualWith(Object) to test whether your
action was notified (or a simple switch case statement).
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<A,EM extends EventMetaData,SRC,B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>
Implementation of the
GenericActionMetaDataEventBuilder interface
for easily creating ActionMetaDataEvent instances. |
GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM extends EventMetaData,SRC,B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A>, org.refcodes.mixin.ActionAccessor.ActionProperty<A>org.refcodes.mixin.SourceAccessor.SourceMutator<SRC>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC>org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD,B extends org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD,B>>, org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<MD>, org.refcodes.mixin.MetaDataAccessor.MetaDataProperty<MD>| Modifier and Type | Field and Description |
|---|---|
protected EM |
_eventMetaData |
_action| Constructor and Description |
|---|
AbstractActionMetaDataEvent(A aAction,
EM aEventMetaData,
SRC aSource)
Constructs an event with the given Meta-Data.
|
AbstractActionMetaDataEvent(A aAction,
SRC aSource)
Constructs an event with the given Meta-Data.
|
AbstractActionMetaDataEvent(EM aEventMetaData,
SRC aSource)
Constructs an event with the given Meta-Data.
|
AbstractActionMetaDataEvent(SRC aSource)
Constructs an event with the given Meta-Data.
|
| Modifier and Type | Method and Description |
|---|---|
EM |
getMetaData() |
String |
toString() |
getActiongetSourceprotected EM extends EventMetaData _eventMetaData
public AbstractActionMetaDataEvent(EM aEventMetaData, SRC aSource)
aEventMetaData - The Meta-Data to by supplied by the event.aSource - The source from which this event originated.public AbstractActionMetaDataEvent(A aAction, EM aEventMetaData, SRC aSource)
aAction - The action which the event represents.aEventMetaData - The Meta-Data to by supplied by the event.aSource - The source from which this event originated.public AbstractActionMetaDataEvent(A aAction, SRC aSource)
aAction - The action which the event represents.aSource - The source from which this event originated.public AbstractActionMetaDataEvent(SRC aSource)
aSource - The source from which this event originated.Copyright © 2018. All rights reserved.