Project JXTA

net.jxta.document
Interface StructuredDocument

All Known Subinterfaces:
StructuredTextDocument

public interface StructuredDocument
extends Document, Element

This interface describes a JXTA structured document. Structured documents are composed of a hierachy of elements very much like XML documents. Structured documents are one of the elementary contents that are manipulated by the core. Structured documents 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