planetj.formatters
Class AbstractFormatter

java.lang.Object
  extended byplanetj.formatters.AbstractFormatter
All Implemented Interfaces:
IFormatter
Direct Known Subclasses:
DecimalFeetFormatter, FeetAbbreviationFormatter, FeetFormatter, HorizontalGraphFormatter, InchesAbbreviationFormatter, InchesFormatter, MonthFormatter, NumberFormatter, PhoneNumberFormatter, ProperCaseFormatter, SkypeTelephoneFormatter, StringFormatter

public abstract class AbstractFormatter
extends java.lang.Object
implements IFormatter


Constructor Summary
AbstractFormatter()
           
 
Method Summary
 boolean isPrepareFieldValue(Field field, ExecutingContext ec)
          Checks whether or not this fields value should be prepared.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface planetj.formatters.IFormatter
formatValue
 

Constructor Detail

AbstractFormatter

public AbstractFormatter()
Method Detail

isPrepareFieldValue

public boolean isPrepareFieldValue(Field field,
                                   ExecutingContext ec)
Description copied from interface: IFormatter
Checks whether or not this fields value should be prepared. For example, there could be an HTML formatter that generates HTML and it's resulting value should not be altered.

Specified by:
isPrepareFieldValue in interface IFormatter