|
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
public abstract class Node
A Node is the dynamic counterpart to the NodeDefinition and holds the current state of a node while reading or writing the stream.
Field Summary | |
---|---|
protected int |
groupCount
|
Constructor Summary | |
---|---|
Node()
Constructs a new Node. |
Method Summary | |
---|---|
abstract Node |
close()
Checks for missing records. |
abstract List<Node> |
getChildren()
Returns a list of child nodes. |
int |
getGroupCount()
Returns the number of times this node has repeated within its parent. |
int |
getMaxOccurs()
Returns the maximum number of time this node must appear within the context of its parent, or -1 for unbounded. |
int |
getMinOccurs()
Returns the minimum number of times this node must appear within the context of its parent. |
String |
getName()
Returns the name of this node. |
protected abstract NodeDefinition |
getNodeDefinition()
Returns this nodes's definition. |
int |
getOrder()
Returns the order in which this node must appear within the context of its parent. |
boolean |
isMaxOccursReached()
Tests if the max occurs has been reached for this node. |
boolean |
isRecord()
Returns true if this node is a leaf node / record. |
abstract Node |
matchAny(Record record)
Finds the child node that matches a record, ignoring the current state of each node. |
abstract 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 |
setGroupCount(int groupCount)
Sets the number of times this node has repeated within its parent. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int groupCount
Constructor Detail |
---|
public Node()
Method Detail |
---|
public abstract List<Node> getChildren()
public boolean isMaxOccursReached()
public abstract Node matchNext(Record record)
record
- the record to match
public abstract Node matchAny(Record record)
record
- the record to match
public abstract Node close()
public void reset()
public boolean isRecord()
protected abstract NodeDefinition getNodeDefinition()
public int getMinOccurs()
public int getMaxOccurs()
public int getOrder()
public String getName()
public int getGroupCount()
public void setGroupCount(int groupCount)
groupCount
- the new number of times this node has repeatedpublic String toString()
toString
in class Object
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |