|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.util.TreeNode<ComponentConfig>
org.beanio.internal.config.ComponentConfig
org.beanio.internal.config.PropertyConfig
org.beanio.internal.config.GroupConfig
public class GroupConfig
A group is used to organize records and the overall structure of a stream. A group may contain records and/or other groups. In many cases, a group does not map to any physical aspect of a stream.
The minSize, maxSize, and nillable attributes do not apply to groups.
| Field Summary |
|---|
| Fields inherited from class org.beanio.internal.config.PropertyConfig |
|---|
JSON_TYPE_ARRAY, JSON_TYPE_BOOLEAN, JSON_TYPE_NONE, JSON_TYPE_NUMBER, JSON_TYPE_OBJECT, JSON_TYPE_STRING |
| Fields inherited from class org.beanio.internal.config.ComponentConfig |
|---|
CONSTANT, FIELD, GROUP, RECORD, SEGMENT, STREAM, WRAPPER |
| Constructor Summary | |
|---|---|
GroupConfig()
Constructs a new GroupConfig. |
|
| Method Summary | |
|---|---|
char |
getComponentType()
Returns the component type. |
String |
getKey()
Returns the name of the property descendant to use for the Map key when collection is set to map. |
Integer |
getOrder()
Returns the order this group must appear within the context of its parent group component. |
String |
getTarget()
Returns the name of the target property for this group. |
protected boolean |
isSupportedChild(ComponentConfig child)
Returns whether a node is a supported child of this node. |
void |
setKey(String key)
Sets the name of the property descendant to use for the Map key when collection is set to map. |
void |
setOrder(Integer order)
Sets the order this group must appear within the context of its parent group component. |
void |
setTarget(String target)
Sets the name of the target property for this group, which can be used in lieu of class to return descendant property types. |
| Methods inherited from class org.beanio.internal.config.PropertyConfig |
|---|
getCollection, getGetter, getJsonArrayIndex, getJsonName, getJsonType, getMaxOccurs, getMaxSize, getMinOccurs, getMinSize, getPosition, getSetter, getType, getUntil, getXmlType, isBound, isCollection, isIdentifier, isJsonArray, isLazy, isNillable, isRepeating, setBound, setCollection, setGetter, setIdentifier, setJsonArray, setJsonArrayIndex, setJsonName, setJsonType, setMaxOccurs, setMaxSize, setMinOccurs, setMinSize, setNillable, setPosition, setSetter, setType, setUntil, setXmlType |
| Methods inherited from class org.beanio.internal.config.ComponentConfig |
|---|
getXmlName, getXmlNamespace, getXmlPrefix, isXmlNamespaceAware, setXmlName, setXmlNamespace, setXmlNamespaceAware, setXmlPrefix |
| Methods inherited from class org.beanio.internal.util.TreeNode |
|---|
add, clone, find, getChildren, getFirst, getName, iterator, print, setName, size, sort, toParamString, toString, updateReferences |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.beanio.internal.config.SelectorConfig |
|---|
getMaxOccurs, getMinOccurs, getName |
| Constructor Detail |
|---|
public GroupConfig()
| Method Detail |
|---|
public char getComponentType()
ComponentConfig
getComponentType in interface SelectorConfiggetComponentType in class ComponentConfigComponentConfig.GROUP, ComponentConfig.RECORD, ComponentConfig.SEGMENT, ComponentConfig.FIELD,
ComponentConfig.CONSTANT or ComponentConfig.WRAPPERpublic Integer getOrder()
getOrder in interface SelectorConfigpublic void setOrder(Integer order)
setOrder in interface SelectorConfigorder - the order of this recordpublic String getKey()
getKey in class PropertyConfigpublic void setKey(String key)
key - the key property namepublic String getTarget()
public void setTarget(String target)
target - the target property nameprotected boolean isSupportedChild(ComponentConfig child)
TreeNodeTreeNode.add(TreeNode).
isSupportedChild in class PropertyConfigchild - the node to test
|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||