BeanIO 1.2.3

org.beanio.parser.delimited
Class DelimitedBeanDefinition

java.lang.Object
  extended by org.beanio.parser.PropertyDefinition
      extended by org.beanio.parser.BeanDefinition
          extended by org.beanio.parser.flat.FlatBeanDefinition
              extended by org.beanio.parser.delimited.DelimitedBeanDefinition

public class DelimitedBeanDefinition
extends FlatBeanDefinition

A DelimitedBeanDefinition is used to parse and format delimited formatted beans.

Since:
1.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.parser.PropertyDefinition
INVALID, MISSING
 
Constructor Summary
DelimitedBeanDefinition()
           
 
Method Summary
 Object formatRecord(Object bean)
          Formats a Java bean into a record (whose class type will depend on the type of stream and record writer being used).
protected  void updateRecord(Object recordObject, int index, String value)
          This method is called by formatRecord to set the field text on the record object being formatted.
 
Methods inherited from class org.beanio.parser.flat.FlatBeanDefinition
formatRecord
 
Methods inherited from class org.beanio.parser.BeanDefinition
addProperty, defines, getAllFields, getBeanProperty, getProperty, getPropertyCount, getPropertyList, isBean, isBeanExistenceKnown, isDefinitionFor, isPropertyTypeMap, isRecordIdentifer, matches, parsePropertyValue, setBeanProperty, setPropertyList, setPropertyType, setRecordIdentifer
 
Methods inherited from class org.beanio.parser.PropertyDefinition
getCollectionType, getLength, getMaxOccurs, getMinOccurs, getName, getParent, getPropertyDescriptor, getPropertyType, isArray, isCollection, isConstant, isField, isLazy, isProperty, isRecordIdentifier, parseValue, setCollectionType, setLazy, setLength, setMaxOccurs, setMinOccurs, setName, setParent, setProperty, setPropertyDescriptor, setRecordIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelimitedBeanDefinition

public DelimitedBeanDefinition()
Method Detail

formatRecord

public Object formatRecord(Object bean)
Description copied from class: BeanDefinition
Formats a Java bean into a record (whose class type will depend on the type of stream and record writer being used).

Specified by:
formatRecord in class BeanDefinition
Parameters:
bean - the bean to format
Returns:
the formatted record

updateRecord

protected void updateRecord(Object recordObject,
                            int index,
                            String value)
Description copied from class: FlatBeanDefinition
This method is called by formatRecord to set the field text on the record object being formatted.

Specified by:
updateRecord in class FlatBeanDefinition
Parameters:
recordObject - the record object
index - the field position
value - the field text

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim