Project JXTA

net.jxta.document
Interface StructuredTextDocument

All Superinterfaces:
Document, Element, StructuredDocument, TextDocument, TextElement
All Known Subinterfaces:
XMLDocument

public interface StructuredTextDocument
extends StructuredDocument, TextDocument, TextElement

Extends StructuredDocument to provide accessors appropriate for text based documents.

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

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

Method Detail

createElement

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

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

createElement

public TextElement 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:
TextElement The new element.

JXTA J2SE