org.loom.validator
Class PathMatcher

java.lang.Object
  extended by org.loom.validator.PathMatcher
All Implemented Interfaces:
java.lang.Cloneable

public class PathMatcher
extends java.lang.Object
implements java.lang.Cloneable

Filter text according to a set of rules (ant-style). It can be used to text if a text matches to a set of include and exclude patterns.


Constructor Summary
PathMatcher()
           
PathMatcher(PathMatcher parent)
           
PathMatcher(PathMatcher parent, java.lang.String[] on, java.lang.String[] except)
           
PathMatcher(java.lang.String[] on, java.lang.String[] except)
           
 
Method Summary
protected  void addAll(PathMatcher other)
           
 PathMatcher addRule(PathMatcherRule rule)
           
 boolean matches(java.lang.String event)
           
 void setConstraints(java.lang.String[] on, java.lang.String[] except)
          Add new on/except constraints to this filter instance
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathMatcher

public PathMatcher()

PathMatcher

public PathMatcher(PathMatcher parent)

PathMatcher

public PathMatcher(java.lang.String[] on,
                   java.lang.String[] except)

PathMatcher

public PathMatcher(PathMatcher parent,
                   java.lang.String[] on,
                   java.lang.String[] except)
Parameters:
parent - the event filter of the parent of this property, for nested property paths. May be null.
on - the events on which this event filter will trigger
except - the events on which this event filter will not trigger
Method Detail

setConstraints

public void setConstraints(java.lang.String[] on,
                           java.lang.String[] except)
Add new on/except constraints to this filter instance

Parameters:
on -
except -

addAll

protected void addAll(PathMatcher other)

matches

public boolean matches(java.lang.String event)

addRule

public PathMatcher addRule(PathMatcherRule rule)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object