Class StartElementEvent
java.lang.Object
org.itsallcode.openfasttrace.importer.xmlparser.event.StartElementEvent
A model for a SAX start element event.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StartElementEventCreates a new start element event.The value of the attribute with the given name.Get theLocationof the element.getName()Get theQNameof the element.toString()
-
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
Get theQNameof the element.- Returns:
- the
QNameof the element.
-
getLocation
Get theLocationof the element.- Returns:
- the
Locationof the element.
-
getAttributeValueByName
The value of the attribute with the given name.- Parameters:
name- the attribute's name.- Returns:
- the attribute value or
nullif no attribute exists.
-
toString
-