org.apache.tapestry.util.text
Class AsciiCharacterMatcher

java.lang.Object
  extended by org.apache.tapestry.util.text.AsciiCharacterMatcher
All Implemented Interfaces:
ICharacterMatcher

public class AsciiCharacterMatcher
extends Object
implements ICharacterMatcher

An object for matching a set of provided ASCII characters.

Since:
4.0
Author:
mb

Constructor Summary
AsciiCharacterMatcher(String chars)
          Create a new ASCII character matcher for identifying the set of provided ASCII characters.
 
Method Summary
 boolean matches(char ch)
          Match the characters provided in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsciiCharacterMatcher

public AsciiCharacterMatcher(String chars)
Create a new ASCII character matcher for identifying the set of provided ASCII characters.

Parameters:
chars - the character that this matcher should identify
Method Detail

matches

public boolean matches(char ch)
Match the characters provided in the constructor.

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.