olg.csv.bean.impl
Class PropertyFormatter.PropertyReader
java.lang.Object
olg.csv.bean.impl.PropertyFormatter
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.
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.
PropertyFormatter.PropertyReader
PropertyFormatter.PropertyReader(Method getter,
String name,
Formatter formatter,
AbstractStringFilter filtre)
- Parameters:
name
- the name of the fieldgetter
- the method to use to extract field of the objectformatter
- the formatter to use to transform the field into a stringfiltre
- it's possible to use a filter after the field has bean
formatted
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.