net.jxta.impl.document
Class TextElementCommon
java.lang.Object
|
+--net.jxta.impl.document.TextElementCommon
- Direct Known Subclasses:
- LiteXMLElement, PlainTextElement
- public abstract class TextElementCommon
- extends java.lang.Object
- implements net.jxta.document.TextElement
This class represent an element of a Text document. This class provides
some common things needed by TextElement instances.
- Since:
- JXTA 1.0
Method Summary |
void |
appendChild(net.jxta.document.Element element)
Add a child element to 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. |
java.lang.Object |
getValue()
Get the value (if any) associated with an element. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TextElementCommon
public TextElementCommon()
appendChild
public void appendChild(net.jxta.document.Element element)
- Add a child element to this element
- Parameters:
element
- the element to be added as a child
getChildren
public java.util.Enumeration getChildren(java.lang.Object key)
- Returns an enumeration of the immediate children of this element whose
name match the specified string.
- Parameters:
key
- The key which will be matched against.- Returns:
- enumeration containing all of the children of this element.
getKey
public java.lang.Object getKey()
- Get the name associated with an element.
- Returns:
- A string containing the key of this element.
getValue
public java.lang.Object getValue()
- Get the value (if any) associated with an element.
- Returns:
- A string containing the value of this element, if any, otherwise null.