|
|||||||||
Home >> All >> org >> apache >> [ hivemind overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
org.apache.hivemind
Interface Element

- All Superinterfaces:
- Locatable
- public interface Element
- extends Locatable
Simplified read-only thread safe DOM. Currently, no support for namespaces, but that may come.
Method Summary | |
java.util.List |
getAttributes()
Returns an unmodifiable list of Attribute for this element. |
java.lang.String |
getAttributeValue(java.lang.String attributeName)
Returns the value for an attribute, or null if the attribute is not specified. |
java.lang.String |
getContent()
Returns the content of the element. |
java.lang.String |
getElementName()
Returns the name of the element, as in, the name of the tag for the element. |
java.util.List |
getElements()
Returns an unmodifiable list of Element directly contained by this element. |
boolean |
isEmpty()
Returns true if this element contains no other elements. |
Methods inherited from interface org.apache.hivemind.Locatable |
getLocation |
Method Detail |
getElementName
public java.lang.String getElementName()
- Returns the name of the element, as in, the name of the tag for the element.
getAttributes
public java.util.List getAttributes()
- 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.
getAttributeValue
public java.lang.String getAttributeValue(java.lang.String attributeName)
- Returns the value for an attribute, or null if the attribute is not specified.
isEmpty
public boolean isEmpty()
- Returns true if this element contains no other elements.
getElements
public java.util.List getElements()
- 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.
getContent
public java.lang.String getContent()
- 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.
|
|||||||||
Home >> All >> org >> apache >> [ hivemind overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |