|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An element represents a portion of a StructuredDocument. An element
is identifiable by a key and may optionally have a
value. Each element also maintains a collection of references
to other elements, its children. Elmenents can be composed
into arbitrary hierarchical structures forming complex data structures.
Element instances are always associated with a StructuredDocument.
A StructuredDocument is a specialized form of element with
additional features that make it appropriate for acting as the root of a
hierarchy of elements.
Document,
StructuredDocument,
StructuredDocumentFactory,
StructuredTextDocument,
TextElement| Method Summary | |
void |
appendChild(Element element)
Add a child element to this element. |
java.util.Enumeration |
getChildren()
Returns an enumeration of the immediate children of this element |
java.util.Enumeration |
getChildren(java.lang.Object key)
Returns an enumeration of the immediate children of this element whose name match the specified string. |
java.lang.Object |
getKey()
Get the name associated with an element. |
Element |
getParent()
Get the parent element of this element. |
StructuredDocument |
getRoot()
Get the root element of the hierarchy this element belongs to. |
java.lang.Object |
getValue()
Get the value (if any) associated with an element. |
| Method Detail |
public java.lang.Object getKey()
public java.lang.Object getValue()
public StructuredDocument getRoot()
public Element getParent()
public void appendChild(Element element)
element - the element to be added as a childpublic java.util.Enumeration getChildren()
public java.util.Enumeration getChildren(java.lang.Object key)
key - The key which will be matched against.
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||