JXTA

net.jxta.document
Interface TextElement<T extends TextElement<T>>

All Superinterfaces:
Element<T>
All Known Subinterfaces:
StructuredTextDocument<T>, XMLDocument<X>, XMLElement<X>

public interface TextElement<T extends TextElement<T>>
extends Element<T>

Extends Element to provide String oriented accessors for instances of StructuredTextDocument

See Also:
Document, Element, StructuredDocument, StructuredTextDocument

Method Summary
 Enumeration<T> getChildren(String name)
          Returns an enumeration of the immediate children of this element whose name match the specified string.
 String getKey()
          Get the key associated with this Element.
 String getName()
          Get the name associated with an element.
 StructuredTextDocument getRoot()
          Get the root document element of the hierarchy this element belongs to.
 String getTextValue()
          Get the value (if any) associated with an element.
 String getValue()
          Get the value (if any) associated with this Element.
 
Methods inherited from interface net.jxta.document.Element
appendChild, getChildren, getChildren, getParent
 

Method Detail

getKey

String getKey()
Get the key associated with this Element.

Specified by:
getKey in interface Element<T extends TextElement<T>>
Returns:
The key of this Element.

getValue

String getValue()
Get the value (if any) associated with this Element.

Specified by:
getValue in interface Element<T extends TextElement<T>>
Returns:
The value of this element, if any, otherwise null.

getRoot

StructuredTextDocument getRoot()
Get the root document element of the hierarchy this element belongs to.

Specified by:
getRoot in interface Element<T extends TextElement<T>>
Returns:
The root document element of this element's hierarchy.

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.

getChildren

Enumeration<T> 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.

JXSE