Package com.topologi.diffx.event
Interface CloseElementEvent
- All Superinterfaces:
DiffXEvent,XMLFormattable,XMLWritable
- All Known Implementing Classes:
CloseElementEventImpl,CloseElementEventNSImpl
The event corresponding to the
endElement SAX event.- Version:
- 3 April 2005
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the local name of the element.Returns the corresponding event element.getURI()Returns the namespace URI the element belongs to.booleanmatch(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, setWeightMethods inherited from interface com.topologi.diffx.xml.XMLFormattable
toXML, toXMLMethods inherited from interface com.topologi.diffx.xml.XMLWritable
toXML
-
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
nullif 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
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:
trueif there is a match;falseotherwise.
-