|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.parser.NodeDefinition
org.beanio.parser.GroupDefinition
public class GroupDefinition
A GroupDefinition is the branch in the tree structure that makes up a stream definition. A group definition can hold record definitions and other group definitions.
| Constructor Summary | |
|---|---|
GroupDefinition()
Constructs a new GroupDefinition. |
|
| Method Summary | |
|---|---|
void |
addChild(NodeDefinition node)
Adds a child to this group definition. |
NodeDefinition |
findDefinitionFor(Object bean)
Returns a record definition (i.e. |
Collection<NodeDefinition> |
getChildren()
Returns a list of this node's children. |
Collection<RecordDefinition> |
getRecordDefinitionAncestors()
Returns all record definition ancestors of this group node. |
boolean |
isRecordDefinition()
Returns true if this node is a leaf node, or in this case a record definition. |
void |
setChildren(Collection<NodeDefinition> children)
Sets this group's children. |
| Methods inherited from class org.beanio.parser.NodeDefinition |
|---|
getMaxOccurs, getMinOccurs, getName, getOrder, setMaxOccurs, setMinOccurs, setName, setOrder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupDefinition()
| Method Detail |
|---|
public Collection<NodeDefinition> getChildren()
NodeDefinition
getChildren in class NodeDefinitionpublic final boolean isRecordDefinition()
NodeDefinition
isRecordDefinition in class NodeDefinitionpublic NodeDefinition findDefinitionFor(Object bean)
NodeDefinition
findDefinitionFor in class NodeDefinitionbean - the bean to format
public void addChild(NodeDefinition node)
node - the node definition to addpublic void setChildren(Collection<NodeDefinition> children)
children - the group children to setpublic Collection<RecordDefinition> getRecordDefinitionAncestors()
|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||