|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.impl.BaseLocatable org.apache.hivemind.impl.ElementImpl
public final class ElementImpl
Implementation of Element
.
Constructor Summary | |
---|---|
ElementImpl()
|
Method Summary | |
---|---|
void |
addAttribute(Attribute attribute)
|
void |
addElement(Element element)
|
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. |
void |
setContent(java.lang.String string)
|
void |
setElementName(java.lang.String elementName)
|
java.lang.String |
toString()
|
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Constructor Detail |
---|
public ElementImpl()
Method Detail |
---|
public void setElementName(java.lang.String elementName)
public java.lang.String getElementName()
Element
getElementName
in interface Element
public void addAttribute(Attribute attribute)
public void addElement(Element element)
public java.util.List getAttributes()
Element
Attribute
for this element.
May return an empty list, but won't return null. The attributes
are in no specific order.
getAttributes
in interface Element
public java.lang.String getContent()
Element
getContent
in interface Element
public java.util.List getElements()
Element
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.
getElements
in interface Element
public java.lang.String getAttributeValue(java.lang.String attributeName)
Element
getAttributeValue
in interface Element
public boolean isEmpty()
Element
isEmpty
in interface Element
public void setContent(java.lang.String string)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |