Project JXTA

net.jxta.document
Interface StructuredTextDocument

All Superinterfaces:
Document, Element, StructuredDocument, TextDocument, TextElement

public interface StructuredTextDocument
extends StructuredDocument, TextDocument, TextElement

StructuredTextDocument is a convenience sub-interface of StructuredDocument for the manipulating text based documents such as XML. Whereas StructuredDocument manipulates elements as abstract Objects, StructuredTextDocument manipulates the keys and values of Elements as Strings.

Since:
JXTA 1.0
See Also:
Document, TextDocument, TextElement, StructuredTextDocument, StructuredDocumentFactory, MimeMediaType

Method Summary
 TextElement createElement(java.lang.String name)
          Create a new element without value
 TextElement createElement(java.lang.String name, java.lang.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
getMimeType, getStream, sendToStream
 
Methods inherited from interface net.jxta.document.Element
appendChild, getChildren, getChildren, getKey, getParent, getValue
 
Methods inherited from interface net.jxta.document.TextDocument
getReader, sendToWriter
 
Methods inherited from interface net.jxta.document.TextElement
appendChild, getChildren, getName, getTextValue
 

Method Detail

createElement

public TextElement createElement(java.lang.String name)
Create a new element without value
Parameters:
name - The name of the element to be created.
Returns:
TextElement The new element.
Since:
JXTA 1.0

createElement

public TextElement createElement(java.lang.String name,
                                 java.lang.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.
Since:
JXTA 1.0

Project JXTA