Class PublisherTypeOfEventMatcher<E extends MetaDataEvent<?,?>,PT>

java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
org.refcodes.observer.PublisherTypeOfEventMatcher<E,PT>
Type Parameters:
E - The matchee type.
PT - The publisher type.
All Implemented Interfaces:
org.refcodes.matcher.Matchable<E>, org.refcodes.matcher.Matcher<E>, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.Schemable, EventMatcher<E>

public class PublisherTypeOfEventMatcher<E extends MetaDataEvent<?,?>,PT> extends AbstractEventMatcher<E>
Matches by event publisher type (EVENT PUBLISHER 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PublisherTypeOfEventMatcher(Class<? extends PT> aEventPublisherType)
    Instantiates a new publisher is assignable from matcher impl.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isMatching(E aEvent)
    Tests whether the given ActionEvent is matching the Matcher's criteria.
    org.refcodes.matcher.MatcherSchema

    Methods inherited from class org.refcodes.observer.AbstractEventMatcher

    getAlias

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PublisherTypeOfEventMatcher

      public PublisherTypeOfEventMatcher(Class<? extends PT> aEventPublisherType)
      Instantiates a new publisher is assignable from matcher impl.
      Parameters:
      aEventPublisherType - the event publisher type
  • Method Details

    • isMatching

      public boolean isMatching(E aEvent)
      Tests whether the given ActionEvent is matching the Matcher's criteria.
      Parameters:
      aEvent - The ActionEvent used for testing its matchability.
      Returns:
      True in case the ActionEvent matches the Matcher's criteria, else false.
    • toSchema

      public org.refcodes.matcher.MatcherSchema toSchema()
      Specified by:
      toSchema in interface org.refcodes.matcher.Matcher<E extends MetaDataEvent<?,?>>
      Specified by:
      toSchema in interface org.refcodes.mixin.Schemable
      Overrides:
      toSchema in class AbstractEventMatcher<E extends MetaDataEvent<?,?>>