java.lang.Object
org.itsallcode.openfasttrace.importer.xmlparser.tree.TreeElement

public class TreeElement extends Object
An element node in a parsed XML tree.
  • Method Details

    • getElement

      public StartElementEvent getElement()
      Returns:
      the StartElementEvent.
    • getCharacterData

      public String 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:
      true if this is the root element.
    • getAttributeValueByName

      public Attribute getAttributeValueByName(String name)
      Get an Attribute by it's name.
      Parameters:
      name - the attribute name.
      Returns:
      the Attribute or null if no attribute exists.
    • getLocation

      public Location getLocation()
      Get the Location of the start element.
      Returns:
      the Location of the start element.
    • invokeEndElementListeners

      public void invokeEndElementListeners()
      Invokes the registered end element listeners.
    • toString

      public String toString()
      Overrides:
      toString in class Object