Represents a single CSV field to Java Bean attribute mapping. The mapping can
be for basic data types, or point to other referenced CSV bean mappings for
representing nested beans.
author: Anupam Sengupta version: $Revision: 1.3 $ See Also:CSVBeanMapping since: 1.5
getBeanReferenceName() Returns the declarative name of the referenced bean mapping for this field, or
null if no bean mapping if referenced by this field.
Compares this field mapping to another mapping. The comparision is based on
the field position.
Parameters: other - the other field mapping to compare to 0 if the two field mappings are equal, -1 if thisfield mapping position is less than the other's, and +1 if this field mappingposition is higher than the others. See Also:Comparable.compareTo
Compares this field mapping with another for equality. Field mappings are compared
for the name and the field position.
Parameters: other - the other field mapping to compare against true if equal, false otherwise See Also:Object.equals(Object)
Returns the referenced bean mapping, if one is present. Returns
null if this field does not have any bean reference.
Returns the bean mapping reference
Returns the declarative name of the referenced bean mapping for this field, or
null if no bean mapping if referenced by this field.
Returns name of the referenced bean mapping
Returns the hash code for this field mapping. The hash code is based on the
field name and the field position.
the hash code See Also:Object.hashCode
setAttributeName
public void setAttributeName(String attributeName)(Code)
Sets the mapped POJO's attribute name corresponding to this field. The name has to exactly
match the attribute name (including the case).
Parameters: attributeName - The mapped POJO' attribute name
Sets the user defined name of this field. This need not be same
as the CSV field name (if defined on the CSV header row).
Parameters: fieldName - The name of this field
setFieldPosition
public void setFieldPosition(int fieldPosition)(Code)
Sets this field's position in the CSV line. Field positions start
at 0.
Parameters: fieldPosition - The field's position in the CSV line