BeanIO 1.2.3

org.beanio.parser.flat
Class FlatRecordDefinition

java.lang.Object
  extended by org.beanio.parser.NodeDefinition
      extended by org.beanio.parser.RecordDefinition
          extended by org.beanio.parser.flat.FlatRecordDefinition
Direct Known Subclasses:
DelimitedRecordDefinition, FixedLengthRecordDefinition

public abstract class FlatRecordDefinition
extends RecordDefinition

Provides support for validating delimited and fixed length formatted records.

Since:
1.0
Author:
Kevin Seim

Constructor Summary
FlatRecordDefinition()
           
 
Method Summary
 int getMaxLength()
          Returns the maximum number of fields this record can have to be valid.
 int getMinLength()
          Returns the minimum number of fields this record must have to be valid.
 void setMaxLength(int maxLength)
          Sets the maximum number of fields this record can have.
 void setMinLength(int minLength)
          Sets the minimum number of fields the record must have to be valid.
 
Methods inherited from class org.beanio.parser.RecordDefinition
findDefinitionFor, formatBean, getBeanDefinition, getChildren, isRecordDefinition, matches, parseBean, setBeanDefinition, toString, validateRecord
 
Methods inherited from class org.beanio.parser.NodeDefinition
getMaxOccurs, getMinOccurs, getName, getOrder, setMaxOccurs, setMinOccurs, setName, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlatRecordDefinition

public FlatRecordDefinition()
Method Detail

getMinLength

public int getMinLength()
Returns the minimum number of fields this record must have to be valid.

Returns:
the minimum number of fields.

setMinLength

public void setMinLength(int minLength)
Sets the minimum number of fields the record must have to be valid.

Parameters:
minLength - the minimum number of fields

getMaxLength

public int getMaxLength()
Returns the maximum number of fields this record can have to be valid. A value of -1 indicates there is no limit.

Returns:
the maximum number of fields

setMaxLength

public void setMaxLength(int maxLength)
Sets the maximum number of fields this record can have. A value of -1 indicates there is no limit.

Parameters:
maxLength - the number of fields

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim