com.oopreserch.web
Class IsJpPostalAddress
java.lang.Object
|
+--com.oopreserch.web.AbstractVerifier
|
+--com.oopreserch.web.IsJpPostalAddress
- All Implemented Interfaces:
- FormValueVerifier
- public class IsJpPostalAddress
- extends AbstractVerifier
Implementation of FormValueVerifier interface.
Returns true for the char used for postal address.
- Author:
- Jun Inamori
|
Method Summary |
boolean |
isValid(char ch)
Returns true for the postal address in Japanase
characters. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsJpPostalAddress
public IsJpPostalAddress()
isValid
public boolean isValid(char ch)
- Returns true for the postal address in Japanase
characters. Otherwise false.
This method works well only for
characters from the typical Japanese environment.
This method returns true for:
- Japanese Kanji
- Japanese Hiragana
- Japanese Katakana (half or full width)
- Japanese Punctuation (half or full width)
- Full width Ascii Symbols
- Full width 0 to 9
- Ascii space
- Ascii line feed
- Ascii cariage return
- Ascii 0 to 9
- Ascii - (hyphen)
because the postal address can be represented by these
characters in Japanese langauge.
- Parameters:
ch - char to be tested.- Returns:
- true for the char used for postal address.
ALL CONTENTS COPYRIGHT 2002, Jun Inamori. All rights reserved.
Any questions and comments are welcome to Jun Inamori.