public class DOMRecordWriter
extends java.lang.Object
| Constructor and Description |
|---|
DOMRecordWriter()
create new RecordBuilder.
|
DOMRecordWriter(boolean printPretty)
create new RecordBuilder with custom printPretty flag.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Element |
appendRecord(org.w3c.dom.Element parent,
Record record)
Append a Record element describing the given record to the given parent element.
|
org.w3c.dom.Element |
appendRecordList(org.w3c.dom.Element parent,
java.lang.Iterable<Record> records)
Append a RecordList element describing the given record list to the given parent element.
|
org.w3c.dom.Element |
appendRecordList(org.w3c.dom.Element parent,
Record[] records)
Append a RecordList element describing the given record list to the given parent element.
|
org.w3c.dom.Element |
buildRecord(org.w3c.dom.Document factory,
Record record)
build Record element.
|
void |
buildRecordAsDocumentElement(org.w3c.dom.Document factory,
Record record)
Builds the record as document element.
|
protected static java.lang.String |
cleanText(java.lang.String text) |
public DOMRecordWriter()
public DOMRecordWriter(boolean printPretty)
printPretty - printPretty flagpublic org.w3c.dom.Element appendRecord(org.w3c.dom.Element parent,
Record record)
parent - the parent element to append to.record - the record to transform.public org.w3c.dom.Element appendRecordList(org.w3c.dom.Element parent,
java.lang.Iterable<Record> records)
parent - the parent element to append to.records - the record list to transform.public org.w3c.dom.Element appendRecordList(org.w3c.dom.Element parent,
Record[] records)
parent - the parent element to append to.records - the record list to transform.public org.w3c.dom.Element buildRecord(org.w3c.dom.Document factory,
Record record)
factory - factory for creating DOM elementsrecord - the record to transformpublic void buildRecordAsDocumentElement(org.w3c.dom.Document factory,
Record record)
factory - the factoryrecord - the recordprotected static java.lang.String cleanText(java.lang.String text)
text - input text (XML)