Package org.beanio.internal.config
Interface SelectorConfig
-
- All Known Implementing Classes:
GroupConfig,RecordConfig,StreamConfig
public interface SelectorConfigThis interface is implemented by configuration components used to select a record for marshalling or unmarshalling, namelyRecordConfigandGroupConfigcomponents.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description chargetComponentType()Returns the component type of this selector.java.lang.IntegergetMaxOccurs()Returns the maximum occurrences of this component.java.lang.IntegergetMinOccurs()Returns the minimum occurrences of this component.java.lang.StringgetName()Returns the name of this component.java.lang.IntegergetOrder()Returns the order of this component within the context of its parent group.voidsetOrder(java.lang.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.RECORDorComponentConfig.GROUP
-
getName
java.lang.String getName()
Returns the name of this component.- Returns:
- the component name.
-
getMinOccurs
java.lang.Integer getMinOccurs()
Returns the minimum occurrences of this component.- Returns:
- the minimum occurrences
-
getMaxOccurs
java.lang.Integer getMaxOccurs()
Returns the maximum occurrences of this component.- Returns:
- the maximum occurrences
-
getOrder
java.lang.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(java.lang.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)
-
-