org.htmlparser.filters
Class IsEqualFilter

java.lang.Object
  extended byorg.htmlparser.filters.IsEqualFilter
All Implemented Interfaces:
java.lang.Cloneable, NodeFilter, java.io.Serializable

public class IsEqualFilter
extends java.lang.Object
implements NodeFilter

This class accepts only one specific node.

See Also:
Serialized Form

Field Summary
protected  Node mNode
          The node to match.
 
Constructor Summary
IsEqualFilter(Node node)
          Creates a new IsEqualFilter that accepts only the node provided.
 
Method Summary
 boolean accept(Node node)
          Accept the node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mNode

protected Node mNode
The node to match.

Constructor Detail

IsEqualFilter

public IsEqualFilter(Node node)
Creates a new IsEqualFilter that accepts only the node provided.

Parameters:
node - The node to match.
Method Detail

accept

public boolean accept(Node node)
Accept the node.

Specified by:
accept in interface NodeFilter
Parameters:
node - The node to check.
Returns:
false unless node is the one and only.