net.jxta.document
Interface StructuredTextDocument
- All Superinterfaces:
- Document, Element, StructuredDocument, TextDocument, TextElement
- All Known Subinterfaces:
- XMLDocument
- public interface StructuredTextDocument
- extends StructuredDocument, TextDocument, TextElement
Extends StructuredDocument
to provide accessors appropriate for text
based documents.
- See Also:
Document
,
StructuredDocument
,
TextDocument
,
Element
,
TextElement
,
StructuredDocumentFactory
createElement
public TextElement createElement(String name)
- Create a new element without value.
- Parameters:
name
- The name of the element to be created.
- Returns:
- TextElement The new element.
createElement
public TextElement createElement(String name,
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.