java.lang.Object
org.refcodes.mixin.EventMetaDataBuilderImpl
- All Implemented Interfaces:
AliasAccessor
,AliasAccessor.AliasBuilder<EventMetaData.EventMetaDataBuilder>
,AliasAccessor.AliasMutator
,AliasAccessor.AliasProperty
,ChannelAccessor
,ChannelAccessor.ChannelBuilder<EventMetaData.EventMetaDataBuilder>
,ChannelAccessor.ChannelMutator
,ChannelAccessor.ChannelProperty
,EventMetaData
,EventMetaData.EventMetaDataBuilder
,GroupAccessor
,GroupAccessor.GroupBuilder<EventMetaData.EventMetaDataBuilder>
,GroupAccessor.GroupMutator
,GroupAccessor.GroupProperty
,UniversalIdAccessor
,UniversalIdAccessor.UniversalIdBuilder<EventMetaData.EventMetaDataBuilder>
,UniversalIdAccessor.UniversalIdMutator
,UniversalIdAccessor.UniversalIdProperty
public class EventMetaDataBuilderImpl extends Object implements EventMetaData.EventMetaDataBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
AliasAccessor.AliasBuilder<B extends AliasAccessor.AliasBuilder<B>>, AliasAccessor.AliasMutator, AliasAccessor.AliasProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.ChannelAccessor
ChannelAccessor.ChannelBuilder<B extends ChannelAccessor.ChannelBuilder<B>>, ChannelAccessor.ChannelMutator, ChannelAccessor.ChannelProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.EventMetaData
EventMetaData.EventMetaDataBuilder
Nested classes/interfaces inherited from interface org.refcodes.mixin.GroupAccessor
GroupAccessor.GroupBuilder<B extends GroupAccessor.GroupBuilder<B>>, GroupAccessor.GroupMutator, GroupAccessor.GroupProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.UniversalIdAccessor
UniversalIdAccessor.UniversalIdBuilder<B extends UniversalIdAccessor.UniversalIdBuilder<B>>, UniversalIdAccessor.UniversalIdMutator, UniversalIdAccessor.UniversalIdProperty
-
Constructor Summary
Constructors Constructor Description EventMetaDataBuilderImpl()
Constructs theEventMetaData
with no properties set except the Universal-TID.EventMetaDataBuilderImpl(Class<?> aPublisherType)
Constructs theEventMetaData
with the given properties.EventMetaDataBuilderImpl(String aChannel)
Constructs theEventMetaData
with the given properties.EventMetaDataBuilderImpl(String aAlias, String aGroup)
Constructs theEventMetaData
with the given properties.EventMetaDataBuilderImpl(String aAlias, String aGroup, String aChannel)
Constructs theEventMetaData
with the given properties.EventMetaDataBuilderImpl(String aAlias, String aGroup, String aChannel, Class<?> aPublisherType)
Constructs theEventMetaData
with the given properties.EventMetaDataBuilderImpl(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
Constructs theEventMetaData
with the given properties.EventMetaDataBuilderImpl(EventMetaData aMetaData)
Constructs theEventMetaData
with the properties provided by the givenEventMetaData
instance. -
Method Summary
Modifier and Type Method Description String
getAlias()
Retrieves the alias from the alias property.String
getChannel()
Retrieves the channel from the channel property.String
getGroup()
Retrieves the group from the group property.Class<?>
getPublisherType()
The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.String
getUniversalId()
Retrieves the UID from the UID property.void
setAlias(String aAlias)
Sets the alias for the alias property.void
setChannel(String aChannel)
Sets the channel for the channel property.void
setGroup(String aGroup)
Sets the group for the group property.void
setPublisherType(Class<?> aPublisherType)
The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.void
setUniversalId(String aUid)
Sets the UID for the UID property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.AliasAccessor.AliasProperty
letAlias
Methods inherited from interface org.refcodes.mixin.ChannelAccessor.ChannelProperty
letChannel
Methods inherited from interface org.refcodes.mixin.EventMetaData.EventMetaDataBuilder
withAlias, withChannel, withGroup, withPublisherType, withUniversalId
Methods inherited from interface org.refcodes.mixin.GroupAccessor.GroupProperty
letGroup
Methods inherited from interface org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty
letUniversalId
-
Constructor Details
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl()Constructs theEventMetaData
with no properties set except the Universal-TID. -
EventMetaDataBuilderImpl
Constructs theEventMetaData
with the given properties.- Parameters:
aPublisherType
- The type of the publisher.
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl(String aAlias, String aGroup, String aChannel, Class<?> aPublisherType)Constructs theEventMetaData
with the given properties.- Parameters:
aAlias
- The alias for theEventMetaData
.aGroup
- The group for theEventMetaData
.aChannel
- The channel for theEventMetaData
.aPublisherType
- The name for theEventMetaData
.
-
EventMetaDataBuilderImpl
Constructs theEventMetaData
with the given properties.- Parameters:
aAlias
- The alias for theEventMetaData
.aGroup
- The group for theEventMetaData
.aChannel
- The channel for theEventMetaData
.
-
EventMetaDataBuilderImpl
Constructs theEventMetaData
with the given properties.- Parameters:
aAlias
- The alias for theEventMetaData
.aGroup
- The group for theEventMetaData
.
-
EventMetaDataBuilderImpl
Constructs theEventMetaData
with the given properties.- Parameters:
aChannel
- The channel for theEventMetaData
.
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)Constructs theEventMetaData
with the given properties.- Parameters:
aAlias
- The alias for theEventMetaData
.aGroup
- The group for theEventMetaData
.aChannel
- The channel for theEventMetaData
.aUid
- The Universal-TID for theEventMetaData
.aPublisherType
- The name for theEventMetaData
.
-
EventMetaDataBuilderImpl
Constructs theEventMetaData
with the properties provided by the givenEventMetaData
instance.- Parameters:
aMetaData
- TheEventMetaData
instance from which to get the properties.
-
-
Method Details
-
getChannel
Retrieves the channel from the channel property.- Specified by:
getChannel
in interfaceChannelAccessor
- Returns:
- The channel stored by the channel property.
-
getGroup
Retrieves the group from the group property.- Specified by:
getGroup
in interfaceGroupAccessor
- Returns:
- The group stored by the group property.
-
getAlias
Retrieves the alias from the alias property.- Specified by:
getAlias
in interfaceAliasAccessor
- Returns:
- The alias stored by the alias property.
-
getPublisherType
The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.- Specified by:
getPublisherType
in interfaceEventMetaData
- Returns:
- The type of the publisher who published the event.
-
getUniversalId
Retrieves the UID from the UID property.- Specified by:
getUniversalId
in interfaceUniversalIdAccessor
- Returns:
- The UID stored by the UID property.
-
setChannel
Sets the channel for the channel property.- Specified by:
setChannel
in interfaceChannelAccessor.ChannelMutator
- Parameters:
aChannel
- The channel to be stored by the channel property.
-
setGroup
Sets the group for the group property.- Specified by:
setGroup
in interfaceGroupAccessor.GroupMutator
- Parameters:
aGroup
- The group to be stored by the group property.
-
setAlias
Sets the alias for the alias property.- Specified by:
setAlias
in interfaceAliasAccessor.AliasMutator
- Parameters:
aAlias
- The alias to be stored by the alias property.
-
setPublisherType
The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.- Specified by:
setPublisherType
in interfaceEventMetaData.EventMetaDataBuilder
- Parameters:
aPublisherType
- The type of the publisher who published the event.
-
setUniversalId
Sets the UID for the UID property.- Specified by:
setUniversalId
in interfaceUniversalIdAccessor.UniversalIdMutator
- Parameters:
aUid
- The UID to be stored by the UID property.
-