org.mmbase.cache
Class ConstraintsMatchingStrategy.AbstractConstraintMatcher
java.lang.Object
org.mmbase.cache.ConstraintsMatchingStrategy.AbstractConstraintMatcher
- Enclosing class:
- ConstraintsMatchingStrategy
protected abstract static class ConstraintsMatchingStrategy.AbstractConstraintMatcher
- extends Object
ConstraintsMatchingStrategy.AbstractConstraintMatcher
protected ConstraintsMatchingStrategy.AbstractConstraintMatcher()
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 valuesevent - 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
MMBase 2.0-SNAPSHOT - null