Class AbstractEventMatcher<E extends Event<?>>

java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
Type Parameters:
E - The matchee type.
All Implemented Interfaces:
org.refcodes.matcher.Matchable<E>, org.refcodes.matcher.Matcher<E>, org.refcodes.mixin.AliasAccessor, EventMatcher<E>, org.refcodes.schema.Schemable
Direct Known Subclasses:
ActionEqualWithEventMatcher, AliasEqualWithEventMatcher, CatchAllEventMatcher, CatchNoneEventMatcher, ChannelEqualWithEventMatcher, GroupEqualWithEventMatcher, PublisherTypeOfEventMatcher, UniversalIdEqualWithEventMatcher

public abstract class AbstractEventMatcher<E extends Event<?>> extends Object implements EventMatcher<E>
Abstract implementation of an EventMatcher type.
  • Constructor Details

    • AbstractEventMatcher

      public AbstractEventMatcher(String aAlias, String aDescription)
      Constructs the EventMatcher instance with the given alias (action) and description.
      Parameters:
      aAlias - the alias
      aDescription - the description
  • Method Details

    • getAlias

      public String getAlias()
      Specified by:
      getAlias in interface org.refcodes.mixin.AliasAccessor
      Specified by:
      getAlias in interface org.refcodes.matcher.Matcher<E extends Event<?>>
    • toSchema

      public org.refcodes.matcher.MatcherSchema toSchema()
      Specified by:
      toSchema in interface org.refcodes.matcher.Matcher<E extends Event<?>>
      Specified by:
      toSchema in interface org.refcodes.schema.Schemable