public class PhoneNumberServiceImpl extends Object implements PhoneNumberService
| Modifier and Type | Field and Description | 
|---|---|
| org.kuali.rice.coreservice.framework.parameter.ParameterService | parameterService | 
| int | PHONE_FORMAT_RULE_DEFAULT_INDEX | 
| List<String> | phoneNumberFormats | 
| Constructor and Description | 
|---|
| PhoneNumberServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | formatNumberIfPossible(String unformattedNumber)Converts a valid phone number to the default format. | 
| boolean | isDefaultFormatPhoneNumber(String phone)A predicate to determine whether the given phone number is in the default format. | 
| boolean | isValidPhoneNumber(String phone)A predicate to determine the validity of phone numbers, using only the formats which are common in North America (which we
 are calling Generic formats) as examples. | 
| protected String[] | parseFormats()Splits the set of phone number formats which are returned from the rule service as a semicolon-delimeted String into a String
 array. | 
| void | setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) | 
public org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
public List<String> phoneNumberFormats
public final int PHONE_FORMAT_RULE_DEFAULT_INDEX
public PhoneNumberServiceImpl()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public String formatNumberIfPossible(String unformattedNumber)
formatNumberIfPossible in interface PhoneNumberServicephone - The phone number String to be convertedPhoneNumberFormatterpublic boolean isValidPhoneNumber(String phone)
isValidPhoneNumber in interface PhoneNumberServicephone - A phone number Stringprotected String[] parseFormats()
public boolean isDefaultFormatPhoneNumber(String phone)
isDefaultFormatPhoneNumber in interface PhoneNumberServicephone - A phone number StringCopyright © 2004–2015 The Kuali Foundation. All rights reserved.