Package org.refcodes.mixin
Class EventMetaDataBuilderImpl
- 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-ID.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
All Methods Instance Methods Concrete Methods 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 interface org.refcodes.mixin.EventMetaData.EventMetaDataBuilder
withAlias, withChannel, withGroup, withPublisherType, withUniversalId
-
-
-
-
Constructor Detail
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl()
Constructs theEventMetaData
with no properties set except the Universal-ID.
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl(Class<?> aPublisherType)
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
public EventMetaDataBuilderImpl(String aAlias, String aGroup, String aChannel)
Constructs theEventMetaData
with the given properties.- Parameters:
aAlias
- The alias for theEventMetaData
.aGroup
- The group for theEventMetaData
.aChannel
- The channel for theEventMetaData
.
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl(String aAlias, String aGroup)
Constructs theEventMetaData
with the given properties.- Parameters:
aAlias
- The alias for theEventMetaData
.aGroup
- The group for theEventMetaData
.
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl(String aChannel)
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-ID for theEventMetaData
.aPublisherType
- The name for theEventMetaData
.
-
EventMetaDataBuilderImpl
public EventMetaDataBuilderImpl(EventMetaData aMetaData)
Constructs theEventMetaData
with the properties provided by the givenEventMetaData
instance.- Parameters:
aMetaData
- TheEventMetaData
instance from which to get the properties.
-
-
Method Detail
-
getChannel
public String getChannel()
Retrieves the channel from the channel property.- Specified by:
getChannel
in interfaceChannelAccessor
- Returns:
- The channel stored by the channel property.
-
getGroup
public String getGroup()
Retrieves the group from the group property.- Specified by:
getGroup
in interfaceGroupAccessor
- Returns:
- The group stored by the group property.
-
getAlias
public String getAlias()
Retrieves the alias from the alias property.- Specified by:
getAlias
in interfaceAliasAccessor
- Returns:
- The alias stored by the alias property.
-
getPublisherType
public 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.- Specified by:
getPublisherType
in interfaceEventMetaData
- Returns:
- The type of the publisher who published the event.
-
getUniversalId
public String getUniversalId()
Retrieves the UID from the UID property.- Specified by:
getUniversalId
in interfaceUniversalIdAccessor
- Returns:
- The UID stored by the UID property.
-
setChannel
public void setChannel(String aChannel)
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
public void setGroup(String aGroup)
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
public void setAlias(String aAlias)
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
public 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.- Specified by:
setPublisherType
in interfaceEventMetaData.EventMetaDataBuilder
- Parameters:
aPublisherType
- The type of the publisher who published the event.
-
setUniversalId
public void setUniversalId(String aUid)
Sets the UID for the UID property.- Specified by:
setUniversalId
in interfaceUniversalIdAccessor.UniversalIdMutator
- Parameters:
aUid
- The UID to be stored by the UID property.
-
-