BeanIO 1.2.3

org.beanio.parser.flat
Class FlatBeanDefinition

java.lang.Object
  extended by org.beanio.parser.PropertyDefinition
      extended by org.beanio.parser.BeanDefinition
          extended by org.beanio.parser.flat.FlatBeanDefinition
Direct Known Subclasses:
DelimitedBeanDefinition, FixedLengthBeanDefinition

public abstract class FlatBeanDefinition
extends BeanDefinition

Provides support for formatting bean objects for delimited and fixed length formatted records.

Since:
1.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.parser.PropertyDefinition
INVALID, MISSING
 
Constructor Summary
FlatBeanDefinition()
           
 
Method Summary
protected  void formatRecord(Object record, Object bean)
          Recursively formats a bean object into a record.
protected abstract  void updateRecord(Object record, int position, String text)
          This method is called by formatRecord to set the field text on the record object being formatted.
 
Methods inherited from class org.beanio.parser.BeanDefinition
addProperty, defines, formatRecord, 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

FlatBeanDefinition

public FlatBeanDefinition()
Method Detail

formatRecord

protected void formatRecord(Object record,
                            Object bean)
Recursively formats a bean object into a record.

Parameters:
record - the record object
bean - the bean to format

updateRecord

protected abstract void updateRecord(Object record,
                                     int position,
                                     String text)
This method is called by formatRecord to set the field text on the record object being formatted.

Parameters:
record - the record object
position - the field position
text - the field text

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim