|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.xml.DOMRecordReader
public class DOMRecordReader
Utility class for creating SMILA records from DOM elements.
| Constructor Summary | |
|---|---|
DOMRecordReader()
Create parser using default factories for records and IDs. |
|
DOMRecordReader(DataFactory dataFactory)
Create parser with custom data factoriy. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMRecordReader()
public DOMRecordReader(DataFactory dataFactory)
dataFactory - custom data factory.| Method Detail |
|---|
public Record parseRecordIn(org.w3c.dom.Element parentElement)
parentElement - parent element of rec:Record
public java.util.List<Record> parseRecordsIn(org.w3c.dom.Element parentElement)
parentElement - the element under which to search for records
public java.util.List<Record> parseRecordsIn(org.w3c.dom.Element parentElement,
int childIndex)
parentElement - the element under which to search for records
public 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
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||