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.runtime.Diagnosable, org.refcodes.schema.Schemable<org.refcodes.runtime.DiagnosticOptions>
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.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor

    org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractEventMatcher(String aAlias, String aDescription)
    Constructs the EventMatcher instance with the given alias (action) and description.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.refcodes.matcher.MatcherSchema

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.refcodes.observer.EventMatcher

    isMatching

    Methods inherited from interface org.refcodes.schema.Schemable

    toSchema
  • 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<E extends Event<?>>