| org.apache.hivemind.Element
All known Subclasses: org.apache.hivemind.impl.ElementImpl,
Element | public interface Element extends Locatable(Code) | | Simplified read-only thread safe DOM.
Currently, no support for namespaces, but that may come.
author: Howard Lewis Ship |
Method Summary | |
public String | getAttributeValue(String attributeName) Returns the value for an attribute, or null if the attribute is not specified. | public List | getAttributes() Returns an unmodifiable list of
Attribute for this element.
May return an empty list, but won't return null. | public String | getContent() Returns the content of the element. | public String | getElementName() Returns the name of the element, as in, the name of the tag for the element. | public List | getElements() Returns an unmodifiable list of
Element directly contained
by this element. | public boolean | isEmpty() Returns true if this element contains no other elements. |
getAttributeValue | public String getAttributeValue(String attributeName)(Code) | | Returns the value for an attribute, or null if the attribute is not specified.
|
getAttributes | public List getAttributes()(Code) | | Returns an unmodifiable list of
Attribute for this element.
May return an empty list, but won't return null. The attributes
are in no specific order.
|
getContent | public String getContent()(Code) | | Returns the content of the element. This is a concatination of
all the text directly enclosed by the element. Ignorable whitespace
is ignored. The content is trimmed of leading and trailing whitespace.
|
getElementName | public String getElementName()(Code) | | Returns the name of the element, as in, the name of the tag for the element.
|
getElements | public List getElements()(Code) | | Returns an unmodifiable list of
Element directly contained
by this element. May return an empty list, but won't return null.
The elements are returned in the order in which they were encountered
in the XML.
|
isEmpty | public boolean isEmpty()(Code) | | Returns true if this element contains no other elements.
|
|
|