Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * This file is part of the DiffX library.
  *
  * For licensing information please see the file license.txt included in the release.
  * A copy of this licence can also be found at
  *   http://www.opensource.org/licenses/artistic-license-2.0.php
  */
 package com.topologi.diffx.event;

The event corresponding to the endElement SAX event.

Author(s):
Christophe Lauret (Allette Systems)
Version:
3 April 2005
public interface CloseElementEvent extends DiffXEvent {

  
Returns the local name of the element.

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

  
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.
  String getURI();

  
Returns the corresponding event element.

Returns:
The corresponding event element.
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.
  boolean match(OpenElementEvent event);
New to GrepCode? Check out our FAQ X