OOP FormGenerator Version 2.1

com.oopreserch.web
Class IsJpFullWidth

java.lang.Object
  |
  +--com.oopreserch.web.AbstractVerifier
        |
        +--com.oopreserch.web.IsJpFullWidth
All Implemented Interfaces:
FormValueVerifier

public class IsJpFullWidth
extends AbstractVerifier

Implementation of FormValueVerifier interface. Returns true for the full wide characters or space.

Author:
Jun Inamori

Constructor Summary
IsJpFullWidth()
           
 
Method Summary
 boolean isValid(char ch)
          Returns true for the full wide characters or space.
 
Methods inherited from class com.oopreserch.web.AbstractVerifier
isValidString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsJpFullWidth

public IsJpFullWidth()
Method Detail

isValid

public boolean isValid(char ch)
Returns true for the full wide characters or space. Otherwise false.

This method works well only for characters from the typical Japanese environment. Note that this method returns true also for space, line feed and cariage return even though they are not full width characters.

Parameters:
ch - char to be tested.
Returns:
true for the full wide characters or space.

OOP FormGenerator Version 2.1

ALL CONTENTS COPYRIGHT 2002, Jun Inamori. All rights reserved.
Any questions and comments are welcome to Jun Inamori.