Groovy Documentation

com.xlson.groovycsv
[Groovy] Class PropertyMapper

java.lang.Object
  com.xlson.groovycsv.PropertyMapper

class PropertyMapper

Maps between column names and values in a list. Uses propertyMissing to allow for named access.

Authors:
Leonard Axelsson
Since:
0.1


Property Summary
java.lang.Object columns

The columns of the csv.

java.lang.Object values

A list of values for one csv line.

 
Method Summary
java.lang.Object propertyMissing(java.lang.String name)

Maps properties to values.

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

columns

java.lang.Object columns
The columns of the csv.


values

java.lang.Object values
A list of values for one csv line.


 
Method Detail

propertyMissing

java.lang.Object propertyMissing(java.lang.String name)
Maps properties to values.
throws:
MissingPropertyException where the values-list doesn't contain enough data.
Parameters:
name - the name of the property
Returns:
the value as a String


toString

java.lang.String toString()


 

Groovy Documentation