java.lang.Object
org.itsallcode.openfasttrace.importer.xmlparser.event.StartElementEvent

public class StartElementEvent extends Object
A model for a SAX start element event.
See Also:
  • Method Details

    • create

      public static StartElementEvent create(String uri, String localName, String qName, Attributes attributes, Location location)
      Creates a new start element event.
      Parameters:
      uri - the namespace URI of the element name.
      localName - the local element name.
      qName - the qname of the element.
      attributes - the attributes of the element.
      location - the location in the document.
      Returns:
      a new start element event.
    • getName

      public QName getName()
      Get the QName of the element.
      Returns:
      the QName of the element.
    • getLocation

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

      public Attribute getAttributeValueByName(String name)
      The value of the attribute with the given name.
      Parameters:
      name - the attribute's name.
      Returns:
      the attribute value or null if no attribute exists.
    • toString

      public String toString()
      Overrides:
      toString in class Object