Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| HTML Parser Home Page
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.htmlparser.filters
Class NotFilter

    java.lang.Object
      org.htmlparser.filters.NotFilter

All Implemented Interfaces:
  NodeFilter

public class NotFilter
extends Object
implements NodeFilter

This class accepts all nodes not acceptable to the filter.

Field Summary
`protected NodeFilter` | `mFilter` The filter to gainsay.

Constructor Summary
`NotFilter(NodeFilter filter)` Creates a new instance of NotFilter that accepts nodes not acceptable to the filter.

Method Summary
`boolean` | `accept(Node node)` Accept nodes that are not acceptable to the filter.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### mFilter

    protected NodeFilter mFilter

  The filter to gainsay.

Constructor Detail

### NotFilter

    public NotFilter(NodeFilter filter)

  Creates a new instance of NotFilter that accepts nodes not acceptable to the filter.

Parameters:
  `filter` - The filter to consult.

Method Detail

### accept

    public boolean accept(Node node)

  Accept nodes that are not acceptable to the filter.

  Specified by:
    `accept` in interface `NodeFilter`
  Parameters:
    `node` - The node to check.
  Returns:
    `true` if the node is to be kept, `false` if it is to be discarded.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| © 2004 Somik Raha Mar 14, 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

HTML Parser is an open source library released under LGPL.