/*
* IsJpHalfWidthKatakana
*
* Created: Mon Apr 22 03:20:52 2002
* $Revision$
* Modified: $Date$
*
* Author: Jun Inamori
* E-mail: jun@oop-reserch.com
*
* Copyright (c) 1998-2001 Jun Inamori
* 2-24-7 Shinsenri-Kitamachi, Toyonaka ,
* Osaka 560-0081 , Japan.
* All rights reserved.
*
*/
package com.oopreserch.web;
/**
* Implementation of {@link FormValueVerifier} interface.
* Returns <i>true</i> for the Japanese Hankaku Katakana.
*
* @author Jun Inamori
*/
public class IsJpHalfWidthKatakana extends AbstractVerifier{
/**
* Returns <i>true</i> for the Japanese Hankaku (half-width)
* Katakana characters. Otherwise <i>false</i>.
* <br>
* <br>
* <font colors="#ff0000">This method works well only for
* characters from the typical Japanese environment.</font>
* Note that this method returns <i>true</i> also for
* <i>space</i>, <i>line feed</i> and <i>cariage return</i>
* even though they are not Hankaku Katakana characters.
* <br>
* <br>
* @param ch <i>char</i> to be tested.
* @return <i>true</i> for the Hankaku Katakana characters.
*/
public boolean isValid(char ch){
if(Character.isWhitespace(ch)){
return true;
}
return isJpHalfWidthKatakana(ch);
}
} //End of : IsJpHalfWidthKatakana