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.
Converts a valid phone number to the default format. Must be changed if the generic format changes. The string passed in is
stripped of non-number chars. If it is then the right length it is formatted. If not the right length the original string is
returned.
Parameters: phone - The phone number String to be converted A String in the default valid format See Also:org.kuali.core.web.format.PhoneNumberFormatter
isDefaultFormatPhoneNumber
public boolean isDefaultFormatPhoneNumber(String phone)(Code)
A predicate to determine whether the given phone number is in the default format.
Parameters: phone - A phone number String True if the phone number is in the default format.
isValidPhoneNumber
public boolean isValidPhoneNumber(String phone)(Code)
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.
Parameters: phone - A phone number String True if the phone number is known to be in a valid format
Splits the set of phone number formats which are returned from the rule service as a semicolon-delimeted String into a String
array.
A String array of the phone number format regular expressions.