Copyright 2011-01-06 Werner Randelshofer

ch.randelshofer.media.tiff
Interface ValueFormatter

All Known Implementing Classes:
ASCIIValueFormatter, DateValueFormatter, EnumValueFormatter, SetValueFormatter

public interface ValueFormatter

ValueFormatter.

Version:
1.0 2010-03-22 Created.
Author:
Werner Randelshofer

Method Summary
 java.lang.String descriptionFormat(java.lang.Object data)
          Describes the data.
 java.lang.Object format(java.lang.Object value)
          Formats the specified value.
 java.lang.Object prettyFormat(java.lang.Object value)
          Formats the specified value in a human readable format.
 

Method Detail

format

java.lang.Object format(java.lang.Object value)
Formats the specified value. If the value is of the desired type, it is replaced by an object which can be handled easier. For example, an integer value by a descriptive String.


prettyFormat

java.lang.Object prettyFormat(java.lang.Object value)
Formats the specified value in a human readable format.


descriptionFormat

java.lang.String descriptionFormat(java.lang.Object data)
Describes the data. Returns null if no description is available.


Copyright 2011-01-06 Werner Randelshofer