org.cafesip.gwtcomp.client.validators
Class PhoneNumberValidator

java.lang.Object
  extended by org.cafesip.gwtcomp.client.validators.PhoneNumberValidator

public class PhoneNumberValidator
extends Object

This class is used to validate telephone number that the user enters. It can be used from GWT client-side classes to validate user-entered phone numbers.

Author:
Beck McElroy

Constructor Summary
PhoneNumberValidator()
           
 
Method Summary
static boolean validPhoneNumber(String phone)
          Validate the given phone number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneNumberValidator

public PhoneNumberValidator()
Method Detail

validPhoneNumber

public static boolean validPhoneNumber(String phone)
Validate the given phone number.

Parameters:
phone - phone number
Returns:
true if the validation is successful, false otherwise


Copyright © 2010 Cafesip.org. All Rights Reserved.