Package 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, namelyRecordConfig
andGroupConfig
components.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description char
getComponentType()
Returns the component type of this selector.java.lang.Integer
getMaxOccurs()
Returns the maximum occurrences of this component.java.lang.Integer
getMinOccurs()
Returns the minimum occurrences of this component.java.lang.String
getName()
Returns the name of this component.java.lang.Integer
getOrder()
Returns the order of this component within the context of its parent group.void
setOrder(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.RECORD
orComponentConfig.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)
-
-