olg.csv.bean.impl
Class PropertyFormatter.PropertyReader

Package class diagram package PropertyFormatter.PropertyReader
java.lang.Object
  extended by olg.csv.bean.impl.PropertyFormatter
      extended by olg.csv.bean.impl.PropertyFormatter.PropertyReader
Enclosing class:
PropertyFormatter

private static final class PropertyFormatter.PropertyReader
extends PropertyFormatter

Basic PropertyFormatter. Allow to represent a field as a string.


Field Summary
private  AbstractStringFilter filtre
          The filter to use to filter the string the formatter returns.
private  Formatter formatter
          the formatter to use to transform the field into a string.
private  Method getter
          the method to use to extract property of the object.
 
Fields inherited from class olg.csv.bean.impl.PropertyFormatter
name
 
Constructor Summary
PropertyFormatter.PropertyReader(Method getter, String name, Formatter formatter, AbstractStringFilter filtre)
           
 
Method Summary
 String toString(Object object)
          Returns a string representation of the property.
 
Methods inherited from class olg.csv.bean.impl.PropertyFormatter
equals, getConcatePropertyReader, getDelegatePropertyReader, getFullName, getName, getPropertyReader, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getter

private final Method getter
the method to use to extract property of the object.


formatter

private final Formatter formatter
the formatter to use to transform the field into a string.


filtre

private final AbstractStringFilter filtre
The filter to use to filter the string the formatter returns.

Constructor Detail

PropertyFormatter.PropertyReader

PropertyFormatter.PropertyReader(Method getter,
                                 String name,
                                 Formatter formatter,
                                 AbstractStringFilter filtre)
Parameters:
name - the name of the field
getter - the method to use to extract field of the object
formatter - the formatter to use to transform the field into a string
filtre - it's possible to use a filter after the field has bean formatted
Method Detail

toString

public String toString(Object object)
Description copied from class: PropertyFormatter
Returns a string representation of the property.

Throws a PropertyException when errors occurs during the formatting.

Specified by:
toString in class PropertyFormatter
Parameters:
object - Object from which product a string representation of its property
Returns:
the string representation.


Copyright © 2014. All Rights Reserved.