Module org.refcodes.observer
Package org.refcodes.observer
Class AliasEqualWithEventMatcher<E extends GenericMetaDataEvent<?,?>>
java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
org.refcodes.observer.AliasEqualWithEventMatcher<E>
- Type Parameters:
E- The matchee type.
- All Implemented Interfaces:
org.refcodes.matcher.Matchable<E>,org.refcodes.matcher.Matcher<E>,org.refcodes.mixin.AliasAccessor,org.refcodes.mixin.Schemable<org.refcodes.matcher.MatcherSchema>,EventMatcher<E>
public class AliasEqualWithEventMatcher<E extends GenericMetaDataEvent<?,?>>
extends AbstractEventMatcher<E>
implements EventMatcher<E>
Matches the given alias with the alias stored in an event's meta data (ALIAS
EQUAL WITH).
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionAliasEqualWithEventMatcher(String aAlias) Instantiates a new alias equal with matcher impl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatching(E aEvent) Tests whether the givenGenericActionEventis matching theMatcher's criteria.org.refcodes.matcher.MatcherSchematoSchema()Methods inherited from class org.refcodes.observer.AbstractEventMatcher
getAliasMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.mixin.AliasAccessor
getAlias
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
AliasEqualWithEventMatcher
Instantiates a new alias equal with matcher impl.- Parameters:
aAlias- the alias
-
-
Method Details
-
isMatching
Tests whether the givenGenericActionEventis matching theMatcher's criteria.- Specified by:
isMatchingin interfaceEventMatcher<E extends GenericMetaDataEvent<?,?>> - Specified by:
isMatchingin interfaceorg.refcodes.matcher.Matchable<E extends GenericMetaDataEvent<?,?>> - Parameters:
aEvent- TheGenericActionEventused for testing its matchability.- Returns:
- True in case the
GenericActionEventmatches theMatcher's criteria, else false.
-
toSchema
public org.refcodes.matcher.MatcherSchema toSchema()- Specified by:
toSchemain interfaceorg.refcodes.mixin.Schemable<E extends GenericMetaDataEvent<?,?>> - Overrides:
toSchemain classAbstractEventMatcher<E extends GenericMetaDataEvent<?,?>>
-