Interface CloseElementEvent

All Superinterfaces:
DiffXEvent, XMLFormattable, XMLWritable
All Known Implementing Classes:
CloseElementEventImpl, CloseElementEventNSImpl

public interface CloseElementEvent extends DiffXEvent
The event corresponding to the endElement SAX event.
Version:
3 April 2005
  • Method Details

    • getName

      String getName()
      Returns the local name of the element.
      Returns:
      The local name of the element.
    • getURI

      String getURI()
      Returns the namespace URI the element belongs to.

      This method should return null if the implementation is not namespace aware.

      Returns:
      The namespace URI the element belongs to.
    • getOpenElement

      OpenElementEvent getOpenElement()
      Returns the corresponding event element.
      Returns:
      The corresponding event element.
    • match

      boolean match(OpenElementEvent event)
      Indicates whether the specified open element event matches this close element event.

      This method first checks whether the open element event is the same as event returned by the getOpenElement() method, if not it simply compares the name of the element and the namespace URI it belongs to.

      Parameters:
      event - The open element event to test.
      Returns:
      true if there is a match; false otherwise.