/*
* IsTelephone
*
* Created: Sun May 26 02:48:43 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;
import java.util.regex.*;
/**
* Implementation of {@link FormValueVerifier} interface.
* Returns <i>true</i> for the valid telephone number.
* <br>
* <br>
* Because this class is the sub-class of
* {@link AbstractVerifierByRegEx}, only <i><b>init( )</b></i>
* method is implemented.
* <br>
* @author Jun Inamori
*/
public class IsTelephone extends AbstractVerifierByRegEx{
/**
* Specifies the regular expression for the valid telephone
* number.
*/
public void init(){
REGEX="^[0-9]([0-9]|\\-)*[0-9]";
}
} //End of : IsTelephone