|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.record.dom.RecordBuilder
public class RecordBuilder
A utility class to create DOM representations of SMILA records.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_NAME
attribute name of name attribute: "n". |
static java.lang.String |
ATTRIBUTE_SEMANTICTYPE
attribute name of semantic type attribute: "st". |
static java.lang.String |
ATTRIBUTE_TYPE
attribute name of type attribute: "type". |
static java.lang.String |
ATTRIBUTE_VERSION
attribute name of version attribute: "version". |
static java.lang.String |
ATTRIBUTE_XMLNSREC
attribute "xmlns:rec" for specification if SMILA Id XML namespace URI. |
static java.lang.String |
NAMESPACE_RECORD
SMILA Recird XML namespace URI, "http://www.eclipse.org/smila/record". |
static java.lang.String |
PREFIX_REC
namespace prefix "rec:" for Id XML elements. |
static java.lang.String |
SCHEMA_VERSION_RECORD
version of Record XMLs created by this builder: "1.0". |
static java.lang.String |
TAG_ANNOTATION
qualified name of Annotation element: "rec:An". |
static java.lang.String |
TAG_ATTACHMENT
qualified name of Attachment element: "rec:Attachment". |
static java.lang.String |
TAG_ATTRIBUTE
qualified name of Attribute element: "rec:A". |
static java.lang.String |
TAG_LITERAL
qualified name of Value element: "rec:L". |
static java.lang.String |
TAG_OBJECT
qualified name of Value element: "rec:O". |
static java.lang.String |
TAG_RECORD
qualified name of Record element: "rec:Record". |
static java.lang.String |
TAG_RECORDLIST
qualified name of RecordList element: "rec:RecordList". |
static java.lang.String |
TAG_VALUE
qualified name of Value element: "rec:V". |
| Constructor Summary | |
|---|---|
RecordBuilder()
create new RecordBuilder. |
|
RecordBuilder(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 rec: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 rec: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 rec: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 rec:Record element without namespace declaration. |
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 |
| Field Detail |
|---|
public static final java.lang.String NAMESPACE_RECORD
public static final java.lang.String ATTRIBUTE_XMLNSREC
public static final java.lang.String PREFIX_REC
public static final java.lang.String TAG_RECORD
public static final java.lang.String TAG_RECORDLIST
public static final java.lang.String TAG_ATTRIBUTE
public static final java.lang.String TAG_ANNOTATION
public static final java.lang.String TAG_VALUE
public static final java.lang.String TAG_LITERAL
public static final java.lang.String TAG_OBJECT
public static final java.lang.String TAG_ATTACHMENT
public static final java.lang.String ATTRIBUTE_VERSION
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_TYPE
public static final java.lang.String ATTRIBUTE_SEMANTICTYPE
public static final java.lang.String SCHEMA_VERSION_RECORD
| Constructor Detail |
|---|
public RecordBuilder()
public RecordBuilder(boolean printPretty)
printPretty - printPretty flag| Method 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 (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||