|
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.Node
org.beanio.parser.GroupNode
public class GroupNode
A GroupNode holds child nodes including records and other groups. This class is the dynamic counterpart to the GroupDefinition and holds the current state of a group node during stream processing.
| Field Summary | |
|---|---|
protected Node |
last
|
| Fields inherited from class org.beanio.parser.Node |
|---|
groupCount |
| Constructor Summary | |
|---|---|
GroupNode(GroupDefinition definition)
Constructs a new GroupNode. |
|
| Method Summary | |
|---|---|
void |
addChild(Node node)
Adds a child node to this group. |
Node |
close()
Checks for any unsatisfied node before the stream is closed. |
List<Node> |
getChildren()
Returns a list of child nodes. |
protected NodeDefinition |
getNodeDefinition()
Returns this nodes's definition. |
Node |
matchAny(Record record)
Finds the child node that matches a record, ignoring the current state of each node. |
Node |
matchNext(Record record)
Finds the child node that matches a record, based on the current state of each node. |
void |
reset()
Called by its parent to reset node statistics. |
void |
setChildren(List<Node> children)
Sets this nodes's children. |
| Methods inherited from class org.beanio.parser.Node |
|---|
getGroupCount, getMaxOccurs, getMinOccurs, getName, getOrder, isMaxOccursReached, isRecord, setGroupCount, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Node last
| Constructor Detail |
|---|
public GroupNode(GroupDefinition definition)
definition - the group definition| Method Detail |
|---|
protected NodeDefinition getNodeDefinition()
Node
getNodeDefinition in class Nodepublic List<Node> getChildren()
Node
getChildren in class Nodepublic void addChild(Node node)
node - the node to addpublic void setChildren(List<Node> children)
children - the new node childrenpublic void reset()
Node
reset in class Nodepublic Node close()
close in class Nodepublic Node matchAny(Record record)
Node
matchAny in class Noderecord - the record to match
public Node matchNext(Record record)
Node
matchNext in class Noderecord - the record to match
|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||