public class DOMRecordReader
extends java.lang.Object
| Constructor and Description | 
|---|
DOMRecordReader()
Create parser using default factories for records and IDs. 
 | 
DOMRecordReader(DataFactory dataFactory)
Create parser with custom data factoriy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
AnyMap | 
parseMap(org.w3c.dom.Element mapElement)
parse AnyMap from given Map element and return it. 
 | 
Record | 
parseRecordFrom(org.w3c.dom.Element recordElement)
create a record from a Record element. 
 | 
Record | 
parseRecordIn(org.w3c.dom.Element parentElement)
find the first child Record element the specified parent element and create a record from it. 
 | 
java.util.List<Record> | 
parseRecordsIn(org.w3c.dom.Element parentElement)
Find all child Record elements that are child of this specified element and parse the record it describes. 
 | 
java.util.List<Record> | 
parseRecordsIn(org.w3c.dom.Element parentElement,
              int childIndex)
Parse only the specified (by childIndex) child Record elements of the given element and parse the record it
 describes. 
 | 
AnySeq | 
parseSeq(org.w3c.dom.Element seqElement)
parse AnySeq from given Seq element and attach to given metadata any. 
 | 
Value | 
parseValue(org.w3c.dom.Element valueElement)
parse a value from the given Val element. 
 | 
public DOMRecordReader()
public DOMRecordReader(DataFactory dataFactory)
dataFactory - custom data factory.public Record parseRecordIn(org.w3c.dom.Element parentElement)
parentElement - parent element of rec:Recordpublic java.util.List<Record> parseRecordsIn(org.w3c.dom.Element parentElement)
parentElement - the element under which to search for recordspublic java.util.List<Record> parseRecordsIn(org.w3c.dom.Element parentElement, int childIndex)
parentElement - the element under which to search for recordspublic Record parseRecordFrom(org.w3c.dom.Element recordElement)
recordElement - a Record element.public AnyMap parseMap(org.w3c.dom.Element mapElement)
mapElement - Map element to parse.public AnySeq parseSeq(org.w3c.dom.Element seqElement)
seqElement - Seq element to parse.public Value parseValue(org.w3c.dom.Element valueElement)
valueElement - Val element