org.cafesip.gwtcomp.client.validators
Class PhoneNumberValidator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhoneNumberValidator
public PhoneNumberValidator()
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.