Class TreeElement
java.lang.Object
org.itsallcode.openfasttrace.importer.xmlparser.tree.TreeElement
An element node in a parsed XML tree.
-
Method Summary
Modifier and TypeMethodDescriptionGet anAttributeby it's name.Get the character data content of the element.Get theStartElementEvent.Get theLocationof the start element.voidInvokes the registered end element listeners.booleanCheck if this is the root element.toString()
-
Method Details
-
getElement
Get theStartElementEvent.- Returns:
- the
StartElementEvent.
-
getCharacterData
Get the character data content of the element.- Returns:
- the character data content of the element.
-
isRootElement
public boolean isRootElement()Check if this is the root element.- Returns:
trueif this is the root element.
-
getAttributeValueByName
Get anAttributeby it's name.- Parameters:
name- the attribute name.- Returns:
- the
Attributeornullif no attribute exists.
-
getLocation
Get theLocationof the start element.- Returns:
- the
Locationof the start element.
-
invokeEndElementListeners
public void invokeEndElementListeners()Invokes the registered end element listeners. -
toString
-