JXTA

net.jxta.document
Interface StructuredTextDocument<T extends TextElement<T>>

All Superinterfaces:
Document, DocumentStreamIO, Element<T>, StructuredDocument<T>, TextDocument, TextDocumentReaderIO, TextElement<T>
All Known Subinterfaces:
XMLDocument<X>

public interface StructuredTextDocument<T extends TextElement<T>>
extends TextDocument, StructuredDocument<T>, TextElement<T>

Extends StructuredDocument to provide accessors appropriate for text based documents.

See Also:
Document, StructuredDocument, TextDocument, Element, TextElement, StructuredDocumentFactory

Method Summary
 T createElement(String name)
          Create a new element without value.
 T createElement(String name, String value)
          Create a new element with value.
 
Methods inherited from interface net.jxta.document.TextDocumentReaderIO
getReader, sendToWriter
 
Methods inherited from interface net.jxta.document.StructuredDocument
createElement, createElement
 
Methods inherited from interface net.jxta.document.Document
getFileExtension, getMimeType
 
Methods inherited from interface net.jxta.document.DocumentStreamIO
getStream, sendToStream
 
Methods inherited from interface net.jxta.document.TextElement
getChildren, getKey, getName, getRoot, getTextValue, getValue
 
Methods inherited from interface net.jxta.document.Element
appendChild, getChildren, getChildren, getParent
 

Method Detail

createElement

T createElement(String name)
Create a new element without value.

Parameters:
name - The name of the element to be created.
Returns:
The new element.

createElement

T createElement(String name,
                String value)
Create a new element with value.

Parameters:
name - The name of the element to be created.
value - The value of the element to be created.
Returns:
The new element.

JXSE