|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes a StructuredDocument
element. An
element represents a portion of a StructuredDocument
. An
element has a name and may have a value. An element may also have
additional elements as children forming a hierarchical structure of
elements. An element can have as many children that it needs.
Codat
,
Document
,
StructuredDocument
,
StructuredTextDocument
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 of this element. |
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 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 |