net.jxta.document
Interface TextElement
- All Superinterfaces:
- Element
- All Known Subinterfaces:
- StructuredTextDocument
- public interface TextElement
- extends Element
Extends Element to provide String oriented
accessors for instances of StructuredTextDocument
- Since:
- Jxta 1.0
- Version:
- $Revision: 1.9 $
- See Also:
Document,
Element,
StructuredDocument,
StructuredTextDocument
|
Method Summary |
void |
appendChild(TextElement element)
Add a child element to this element |
java.util.Enumeration |
getChildren(java.lang.String name)
Returns an enumeration of the immediate children of this element whose
name match the specified string. |
java.lang.String |
getName()
Get the name associated with an element. |
java.lang.String |
getTextValue()
Get the value (if any) associated with an element. |
getName
public java.lang.String getName()
- Get the name associated with an element.
- Returns:
- A string containing the name of this element.
- Since:
- JXTA 1.0
getTextValue
public java.lang.String getTextValue()
- Get the value (if any) associated with an element.
- Returns:
- A string containing the value of this element, if any, otherwise null.
- Since:
- JXTA 1.0
appendChild
public void appendChild(TextElement element)
- Add a child element to this element
- Parameters:
element - the element to be added as a child- Since:
- JXTA 1.0
getChildren
public java.util.Enumeration getChildren(java.lang.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.
- Since:
- JXTA 1.0