|
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.DOMRecordWriter
public class DOMRecordWriter
A utility class to create DOM representations of SMILA records.
Constructor Summary | |
---|---|
DOMRecordWriter()
create new RecordBuilder. |
|
DOMRecordWriter(boolean printPretty)
create new RecordBuilder with custom printPretty flag. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMRecordWriter()
public DOMRecordWriter(boolean printPretty)
printPretty
- printPretty flagMethod Detail |
---|
public 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 transform
public 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)
|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |