org.beanio.parser.flat
Class FlatBeanDefinition
java.lang.Object
org.beanio.parser.PropertyDefinition
org.beanio.parser.BeanDefinition
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
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 |
FlatBeanDefinition
public FlatBeanDefinition()
formatRecord
protected void formatRecord(Object record,
Object bean)
- Recursively formats a bean object into a record.
- Parameters:
record
- the record objectbean
- 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 objectposition
- the field positiontext
- the field text
Copyright © 2010-2012 Kevin Seim