planetj.formatters
Class PhoneNumberFormatter
java.lang.Object
|
+--planetj.formatters.PhoneNumberFormatter
- All Implemented Interfaces:
- IFormatter
- public class PhoneNumberFormatter
- extends Object
- implements IFormatter
Insert the type's description here.
Creation date: (11/28/2001 10:04:12 AM)
PhoneNumberFormatter
public PhoneNumberFormatter()
formatValue
public Object formatValue(Object value)
- Formats the Object passed in. This method only alters the format
of a numeric (or the String representation of that numeric) that
has 10 or 7 digits and no commas. Anything else that is passed in will
simply be returned. For example, the number or string 7604320000
would return the String (760) 432-0000 or a number such as 4320000 would be
returned as 432-0000.
- Specified by:
formatValue
in interface IFormatter
- Parameters:
value
- java.lang.Object
- Returns:
- java.lang.Object