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
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