BeanIO 2.0.4

org.beanio.internal.config
Interface SelectorConfig

All Known Implementing Classes:
GroupConfig, RecordConfig, StreamConfig

public interface SelectorConfig

This interface is implemented by configuration components used to select a record for marshalling or unmarshalling, namely RecordConfig and GroupConfig components.

Since:
2.0
Author:
Kevin Seim

Method Summary
 char getComponentType()
          Returns the component type of this selector.
 Integer getMaxOccurs()
          Returns the maximum occurrences of this component.
 Integer getMinOccurs()
          Returns the minimum occurrences of this component.
 String getName()
          Returns the name of this component.
 Integer getOrder()
          Returns the order of this component within the context of its parent group.
 void setOrder(Integer order)
          Sets the order of this component within the context of its parent group.
 

Method Detail

getComponentType

char getComponentType()
Returns the component type of this selector.

Returns:
either ComponentConfig.RECORD or ComponentConfig.GROUP

getName

String getName()
Returns the name of this component.

Returns:
the component name.

getMinOccurs

Integer getMinOccurs()
Returns the minimum occurrences of this component.

Returns:
the minimum occurrences

getMaxOccurs

Integer getMaxOccurs()
Returns the maximum occurrences of this component.

Returns:
the maximum occurrences

getOrder

Integer getOrder()
Returns the order of this component within the context of its parent group. Records and groups assigned the same order number may appear in any order.

Returns:
the component order (starting at 1)

setOrder

void setOrder(Integer order)
Sets the order of this component within the context of its parent group. Records and groups assigned the same order number may appear in any order.

Parameters:
order - the component order (starting at 1)

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim