Project JXTA

net.jxta.document
Interface TextElement

All Superinterfaces:
Element
All Known Subinterfaces:
StructuredTextDocument, XMLDocument, XMLElement

public interface TextElement
extends Element

Extends Element to provide String oriented accessors for instances of StructuredTextDocument

See Also:
Document, Element, StructuredDocument, StructuredTextDocument

Method Summary
 void appendChild(TextElement element)
          Add a child element to this element
 Enumeration getChildren(String name)
          Returns an enumeration of the immediate children of this element whose name match the specified string.
 String getName()
          Get the name associated with an element.
 String getTextValue()
          Get the value (if any) associated with an element.
 
Methods inherited from interface net.jxta.document.Element
appendChild, getChildren, getChildren, getKey, getParent, getRoot, getValue
 

Method Detail

getName

String getName()
Get the name associated with an element.

Returns:
A string containing the name of this element.

getTextValue

String getTextValue()
Get the value (if any) associated with an element.

Returns:
A string containing the value of this element, if any, otherwise null.

appendChild

void appendChild(TextElement element)
Add a child element to this element

Parameters:
element - the element to be added as a child

getChildren

Enumeration getChildren(String name)
Returns an enumeration of the immediate children of this element whose name match the specified string.

Parameters:
name - The name which will be matched against.
Returns:
An enumeration containing all of the children of this element.

JXTA J2SE