BeanIO 1.2.3

org.beanio.config
Class BeanConfig

java.lang.Object
  extended by org.beanio.config.PropertyConfig
      extended by org.beanio.config.BeanConfig

public class BeanConfig
extends PropertyConfig

A property configuration that describes a Java bean object. The bean class type is set using the type attribute, and its properties can be configured by adding child PropertyConfig instances.

Since:
1.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.config.PropertyConfig
LEFT, RIGHT
 
Constructor Summary
BeanConfig()
          Constructs a new BeanConfig.
 
Method Summary
 void addProperty(PropertyConfig fieldConfig)
          Adds a property to this bean.
 PropertyConfig getProperty(int index)
          Returns the property configuration at the given index.
 List<PropertyConfig> getPropertyList()
          Returns a list of this bean's properties.
 boolean isBean()
          Returns true to indicate this property is a bean.
 void setPropertyList(List<PropertyConfig> list)
          Sets the list of properties that make up this bean.
 
Methods inherited from class org.beanio.config.PropertyConfig
getCollection, getGetter, getMaxOccurs, getMinOccurs, getName, getSetter, getType, getXmlName, getXmlNamespace, getXmlPrefix, getXmlType, getXmlWrapper, isField, isIgnored, isNillable, setCollection, setGetter, setIgnored, setMaxOccurs, setMinOccurs, setName, setNillable, setSetter, setType, setXmlName, setXmlNamespace, setXmlPrefix, setXmlType, setXmlWrapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanConfig

public BeanConfig()
Constructs a new BeanConfig.

Method Detail

isBean

public boolean isBean()
Returns true to indicate this property is a bean.

Overrides:
isBean in class PropertyConfig
Returns:
true

addProperty

public void addProperty(PropertyConfig fieldConfig)
Adds a property to this bean.

Parameters:
fieldConfig - the field configuration

getPropertyList

public List<PropertyConfig> getPropertyList()
Returns a list of this bean's properties.

Returns:
the list of properties that make up this bean

getProperty

public PropertyConfig getProperty(int index)
Returns the property configuration at the given index.

Parameters:
index - the property index
Returns:
the property configuration
Throws:
IndexOutOfBoundsException - if there is no property at the specified index

setPropertyList

public void setPropertyList(List<PropertyConfig> list)
Sets the list of properties that make up this bean.

Parameters:
list - the list of properties

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim