planetj.formatters
Class PhoneNumberFormatter

java.lang.Object
  extended byplanetj.formatters.AbstractFormatter
      extended byplanetj.formatters.PhoneNumberFormatter
All Implemented Interfaces:
IFormatter

public class PhoneNumberFormatter
extends AbstractFormatter

Insert the type's description here. Creation date: (11/28/2001 10:04:12 AM)


Constructor Summary
PhoneNumberFormatter()
           
 
Method Summary
 java.lang.String formatValue(java.lang.Object value, Field f)
          Formats the Object passed in.
 
Methods inherited from class planetj.formatters.AbstractFormatter
isPrepareFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneNumberFormatter

public PhoneNumberFormatter()
Method Detail

formatValue

public java.lang.String formatValue(java.lang.Object value,
                                    Field f)
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.

Parameters:
value - java.lang.Object
f - The field whose value is being formatted
Returns:
java.lang.Object