Project JXTA

net.jxta.document
Interface StructuredDocument

All Known Subinterfaces:
StructuredTextDocument

public interface StructuredDocument
extends Document, Element

StructuredDocuments are composed of a hierachy of elements very much like XML documents. The allow the content of several document types to be mainpulated in an abstract way without regard to the phyiscal representation of the documents. StructuredDocuments are one of the elementary contents that are manipulated by the core. StructuredDocuments are used to represent most core objects such as peer, peergroup or pipe advertisements.

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

Method Summary
 Element createElement(java.lang.Object key)
          Create a new element without value
 Element createElement(java.lang.Object key, java.lang.Object value)
          Create a new element with value
 
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
 

Method Detail

createElement

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

createElement

public Element createElement(java.lang.Object key,
                             java.lang.Object value)
Create a new element with value
Parameters:
key - The name of the element to be created.
value - The value of the element to be created.
Returns:
The new element.
Since:
JXTA 1.0

Project JXTA