BeanIO 1.2.3

org.beanio.parser.xml
Class XmlGroupNode

java.lang.Object
  extended by org.beanio.parser.Node
      extended by org.beanio.parser.GroupNode
          extended by org.beanio.parser.xml.XmlGroupNode

public class XmlGroupNode
extends GroupNode

Group node implementation for XML formatted streams.

Unlike a fixed length or delimited stream, XML streams can be configured to match group names to XML elements.

Since:
1.1
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.parser.GroupNode
last
 
Fields inherited from class org.beanio.parser.Node
groupCount
 
Constructor Summary
XmlGroupNode(XmlGroupDefinition definition)
          Constructs a new XmlGroupNode.
 
Method Summary
 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.
 
Methods inherited from class org.beanio.parser.GroupNode
addChild, close, getChildren, getNodeDefinition, reset, setChildren
 
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
 

Constructor Detail

XmlGroupNode

public XmlGroupNode(XmlGroupDefinition definition)
Constructs a new XmlGroupNode.

Parameters:
definition - the XML group definition
Method Detail

matchAny

public Node matchAny(Record record)
Description copied from class: Node
Finds the child node that matches a record, ignoring the current state of each node.

Overrides:
matchAny in class GroupNode
Parameters:
record - the record to match
Returns:
the matching leaf node, or null if the record could not be matched

matchNext

public Node matchNext(Record record)
Description copied from class: Node
Finds the child node that matches a record, based on the current state of each node.

Overrides:
matchNext in class GroupNode
Parameters:
record - the record to match
Returns:
the matched node, or null if no match was found

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim