com.topologi.diffx.event
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
Author:
Christophe Lauret (Allette Systems)

Method Summary
 String getName()
          Returns the local name of the element.
 OpenElementEvent getOpenElement()
          Returns the corresponding event element.
 String getURI()
          Returns the namespace URI the element belongs to.
 boolean match(OpenElementEvent event)
          Indicates whether the specified open element event matches this close element event.
 
Methods inherited from interface com.topologi.diffx.event.DiffXEvent
equals, getWeight, setWeight
 
Methods inherited from interface com.topologi.diffx.xml.XMLWritable
toXML
 
Methods inherited from interface com.topologi.diffx.xml.XMLFormattable
toXML, toXML
 

Method Detail

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.