olg.csv.bean.impl
Class PropertyFormatter.DelegatePropertyReader

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

private static final class PropertyFormatter.DelegatePropertyReader
extends PropertyFormatter

PropertyFormatter to use to represent a characterstic of a field as a string.


Field Summary
private  Method getter
          The method to extract the field.
private  PropertyFormatter propertyFormatter
          The propertyFormatter used to represents the field.
 
Fields inherited from class olg.csv.bean.impl.PropertyFormatter
name
 
Constructor Summary
PropertyFormatter.DelegatePropertyReader(Method getter, String name, PropertyFormatter propertyFormatter)
           
 
Method Summary
 String getFullName()
          Return the full name of the property.
 String getName()
          Returns the name of the property.
 String toString(Object object)
          Returns a string representation of the property.
 
Methods inherited from class olg.csv.bean.impl.PropertyFormatter
equals, getConcatePropertyReader, getDelegatePropertyReader, 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 extract the field.


propertyFormatter

private final PropertyFormatter propertyFormatter
The propertyFormatter used to represents the field.

Constructor Detail

PropertyFormatter.DelegatePropertyReader

PropertyFormatter.DelegatePropertyReader(Method getter,
                                         String name,
                                         PropertyFormatter propertyFormatter)
Parameters:
getter - the method to invoke to get the property value.
name - the property name.
propertyFormatter - the formatter. format the property value as a string.
Method Detail

getFullName

public String getFullName()
Description copied from class: PropertyFormatter
Return the full name of the property. In case property is itself a property of a field, must indicate the field name followed by the property name like "field.property".

Overrides:
getFullName in class PropertyFormatter
Returns:
the full name.

getName

public String getName()
Description copied from class: PropertyFormatter
Returns the name of the property.

Overrides:
getName in class PropertyFormatter
Returns:
the property name.

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.