org.loom.validator
Class PathMatcher
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 triggerexcept
- the events on which this event filter will not trigger
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