org.beanio.parser.xml
Class XmlGroupNode
java.lang.Object
org.beanio.parser.Node
org.beanio.parser.GroupNode
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
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. |
XmlGroupNode
public XmlGroupNode(XmlGroupDefinition definition)
- Constructs a new XmlGroupNode.
- Parameters:
definition
- the XML group definition
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
Copyright © 2010-2012 Kevin Seim