|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 definitionMethod Detail |
---|
protected NodeDefinition getNodeDefinition()
Node
getNodeDefinition
in class Node
public List<Node> getChildren()
Node
getChildren
in class Node
public 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 Node
public Node close()
close
in class Node
public Node matchAny(Record record)
Node
matchAny
in class Node
record
- the record to match
public Node matchNext(Record record)
Node
matchNext
in class Node
record
- the record to match
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |