BeanIO 1.2.3

org.beanio.config
Class RecordConfig

java.lang.Object
  extended by org.beanio.config.NodeConfig
      extended by org.beanio.config.RecordConfig

public class RecordConfig
extends NodeConfig

Stores configuration settings for a record. Records and groups are used to define the layout of stream.

Since:
1.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.config.NodeConfig
GROUP, RECORD
 
Constructor Summary
RecordConfig()
           
 
Method Summary
 BeanConfig getBean()
          Returns the bean configuration this record is mapped to.
 Integer getMaxLength()
          Returns the maximum length of the record.
 Integer getMinLength()
          Returns the minimum length of the record.
 char getType()
          Returns NodeConfig.RECORD
 void setBean(BeanConfig bean)
          Sets the bean configuration this record is maps to.
 void setMaxLength(Integer maxLength)
          Sets the maximum length of the record.
 void setMinLength(Integer minLength)
          Sets the minimum length of the record.
 
Methods inherited from class org.beanio.config.NodeConfig
getMaxOccurs, getMinOccurs, getName, getOrder, setMaxOccurs, setMinOccurs, setName, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordConfig

public RecordConfig()
Method Detail

getType

public char getType()
Returns NodeConfig.RECORD

Specified by:
getType in class NodeConfig
Returns:
NodeConfig.RECORD or NodeConfig.GROUP

getBean

public BeanConfig getBean()
Returns the bean configuration this record is mapped to.

Returns:
the bean configuration

setBean

public void setBean(BeanConfig bean)
Sets the bean configuration this record is maps to.

Parameters:
bean - the bean configuration

getMinLength

public Integer getMinLength()
Returns the minimum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.

Returns:
the minimum record length, or null if not set

setMinLength

public void setMinLength(Integer minLength)
Sets the minimum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.

Parameters:
minLength - the minimum record length, or null if not set

getMaxLength

public Integer getMaxLength()
Returns the maximum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.

Returns:
the maximum record length, or null if not set

setMaxLength

public void setMaxLength(Integer maxLength)
Sets the maximum length of the record. Depending on the type of stream, the length may refer to the number of fields or the number of characters.

Parameters:
maxLength - the maximum record length, or null if not set

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim