com.oopreserch.web
Class IsDigitOrAlphabet
java.lang.Object
|
+--com.oopreserch.web.AbstractVerifier
|
+--com.oopreserch.web.IsDigitOrAlphabet
- All Implemented Interfaces:
- FormValueVerifier
- public class IsDigitOrAlphabet
- extends AbstractVerifier
Implementation of FormValueVerifier interface.
Returns true for String with A-Z, a-z or 0-9.
- Author:
- Jun Inamori
|
Method Summary |
boolean |
isValid(char ch)
Returns true for A-Z, a-z or 0-9. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsDigitOrAlphabet
public IsDigitOrAlphabet()
isValid
public boolean isValid(char ch)
- Returns true for A-Z, a-z or 0-9.
Otherwise false.
- Overrides:
isValid in class AbstractVerifier
- Parameters:
ch - char to be tested.
- Returns:
- true for A-Z, a-z or 0-9.
ALL CONTENTS COPYRIGHT 2002, Jun Inamori. All rights reserved.
Any questions and comments are welcome to Jun Inamori.