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
  • Constructor Details

    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl()
      Constructs the EventMetaData with no properties set except the Universal-TID.
    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl​(Class<?> aPublisherType)
      Constructs the EventMetaData with the given properties.
      Parameters:
      aPublisherType - The type of the publisher.
    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl​(String aAlias, String aGroup, String aChannel, Class<?> aPublisherType)
      Constructs the EventMetaData with the given properties.
      Parameters:
      aAlias - The alias for the EventMetaData.
      aGroup - The group for the EventMetaData.
      aChannel - The channel for the EventMetaData.
      aPublisherType - The name for the EventMetaData.
    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl​(String aAlias, String aGroup, String aChannel)
      Constructs the EventMetaData with the given properties.
      Parameters:
      aAlias - The alias for the EventMetaData.
      aGroup - The group for the EventMetaData.
      aChannel - The channel for the EventMetaData.
    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl​(String aAlias, String aGroup)
      Constructs the EventMetaData with the given properties.
      Parameters:
      aAlias - The alias for the EventMetaData.
      aGroup - The group for the EventMetaData.
    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl​(String aChannel)
      Constructs the EventMetaData with the given properties.
      Parameters:
      aChannel - The channel for the EventMetaData.
    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl​(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
      Constructs the EventMetaData with the given properties.
      Parameters:
      aAlias - The alias for the EventMetaData.
      aGroup - The group for the EventMetaData.
      aChannel - The channel for the EventMetaData.
      aUid - The Universal-TID for the EventMetaData.
      aPublisherType - The name for the EventMetaData.
    • EventMetaDataBuilderImpl

      public EventMetaDataBuilderImpl​(EventMetaData aMetaData)
      Constructs the EventMetaData with the properties provided by the given EventMetaData instance.
      Parameters:
      aMetaData - The EventMetaData instance from which to get the properties.
  • Method Details

    • getChannel

      public String getChannel()
      Retrieves the channel from the channel property.
      Specified by:
      getChannel in interface ChannelAccessor
      Returns:
      The channel stored by the channel property.
    • getGroup

      public String getGroup()
      Retrieves the group from the group property.
      Specified by:
      getGroup in interface GroupAccessor
      Returns:
      The group stored by the group property.
    • getAlias

      public String getAlias()
      Retrieves the alias from the alias property.
      Specified by:
      getAlias in interface AliasAccessor
      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 interface EventMetaData
      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 interface UniversalIdAccessor
      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 interface ChannelAccessor.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 interface GroupAccessor.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 interface AliasAccessor.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 interface EventMetaData.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 interface UniversalIdAccessor.UniversalIdMutator
      Parameters:
      aUid - The UID to be stored by the UID property.