JXTA

net.jxta.document
Interface XMLElement<X extends XMLElement<X>>

All Superinterfaces:
Attributable, Element<X>, TextElement<X>
All Known Subinterfaces:
XMLDocument<X>

public interface XMLElement<X extends XMLElement<X>>
extends TextElement<X>, Attributable

Common definition of XML Elements. Appropriate for advertisements and messages.


Method Summary
 XMLDocument getRoot()
          Get the root document element of the hierarchy this element belongs to.
 
Methods inherited from interface net.jxta.document.TextElement
getChildren, getKey, getName, getTextValue, getValue
 
Methods inherited from interface net.jxta.document.Element
appendChild, getChildren, getChildren, getParent
 
Methods inherited from interface net.jxta.document.Attributable
addAttribute, addAttribute, getAttribute, getAttributes
 

Method Detail

getRoot

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

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

JXSE