com.liferay.portal.kernel.format
Class PhoneNumberFormatUtil

java.lang.Object
  extended by com.liferay.portal.kernel.format.PhoneNumberFormatUtil

public class PhoneNumberFormatUtil
extends java.lang.Object

Author:
Brian Wing Shun Chan, Manuel de la Peña

Constructor Summary
PhoneNumberFormatUtil()
           
 
Method Summary
static java.lang.String format(java.lang.String phoneNumber)
           
static PhoneNumberFormat getPhoneNumberFormat()
           
 void setPhoneNumberFormat(PhoneNumberFormat phoneNumberFormat)
           
static java.lang.String strip(java.lang.String phoneNumber)
           
static boolean validate(java.lang.String phoneNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneNumberFormatUtil

public PhoneNumberFormatUtil()
Method Detail

format

public static java.lang.String format(java.lang.String phoneNumber)

getPhoneNumberFormat

public static PhoneNumberFormat getPhoneNumberFormat()

strip

public static java.lang.String strip(java.lang.String phoneNumber)

validate

public static boolean validate(java.lang.String phoneNumber)

setPhoneNumberFormat

public void setPhoneNumberFormat(PhoneNumberFormat phoneNumberFormat)