org.mmbase.cache
Class ConstraintsMatchingStrategy.AbstractConstraintMatcher

Package class diagram package ConstraintsMatchingStrategy.AbstractConstraintMatcher
java.lang.Object
  extended by org.mmbase.cache.ConstraintsMatchingStrategy.AbstractConstraintMatcher
Enclosing class:
ConstraintsMatchingStrategy

protected abstract static class ConstraintsMatchingStrategy.AbstractConstraintMatcher
extends Object


Constructor Summary
protected ConstraintsMatchingStrategy.AbstractConstraintMatcher()
           
 
Method Summary
abstract  boolean eventApplies(Map<String,Object> valuesToMatch, NodeEvent event)
           
abstract  boolean nodeMatchesConstraint(Map<String,Object> valuesToMatch, NodeEvent event)
           
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstraintsMatchingStrategy.AbstractConstraintMatcher

protected ConstraintsMatchingStrategy.AbstractConstraintMatcher()
Method Detail

nodeMatchesConstraint

public abstract boolean nodeMatchesConstraint(Map<String,Object> valuesToMatch,
                                              NodeEvent event)
Parameters:
valuesToMatch - the field values that the constraint value will have to be matched against. this will sometimes be the 'oldValues' and sometimes be the 'newValues' from the event.
Returns:
true if the values of event falls within the limits of the constraint

eventApplies

public abstract boolean eventApplies(Map<String,Object> valuesToMatch,
                                     NodeEvent event)
Parameters:
valuesToMatch - map of (changed) fields with their values
event - the event that has occured
Returns:
true if the wrapped constraint matches the node event

toString

public abstract String toString()
Overrides:
toString in class Object


MMBase2 Core 2.0-SNAPSHOT - 2013-11-29T11:08