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