org.beanio.parser.delimited
Class DelimitedBeanDefinition
java.lang.Object
org.beanio.parser.PropertyDefinition
org.beanio.parser.BeanDefinition
org.beanio.parser.flat.FlatBeanDefinition
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
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.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 |
DelimitedBeanDefinition
public DelimitedBeanDefinition()
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 objectindex
- the field positionvalue
- the field text
Copyright © 2010-2012 Kevin Seim