org.apache.tapestry.util.text
Class CompoundMatcher
java.lang.Object
org.apache.tapestry.util.text.CompoundMatcher
- All Implemented Interfaces:
- ICharacterMatcher
public class CompoundMatcher
- extends Object
- implements ICharacterMatcher
Combine a set of character matchers. A given character will be matched if any
of the provided objects matches it.
- Since:
- 4.0
- Author:
- mb
Method Summary |
boolean |
matches(char ch)
Match the character if any of the provided objects matches it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompoundMatcher
public CompoundMatcher(ICharacterMatcher[] matchers)
- Create a new object that will match a character if any of the provided objects matches it.
- Parameters:
matchers
- the array of objects that will be queried if a character matches
matches
public boolean matches(char ch)
- Match the character if any of the provided objects matches it.
- Specified by:
matches
in interface ICharacterMatcher
- Parameters:
ch
- the character to be matched
- Returns:
- true if the character matches the rule
- See Also:
ICharacterMatcher.matches(char)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.