Interface PNodeFilter


public interface PNodeFilter
PNodeFilter is a interface that filters (accepts or rejects) nodes. Its main use is to retrieve all the children of a node the meet some criteria by using the method PNode.getAllNodes(collection, filter);

Version:
1.0
Author:
Jesse Grosjean
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(PNode aNode)
    Return true if the filter should accept the given node.
    boolean
    Return true if the filter should test the children of the given node for acceptance.
  • Method Details

    • accept

      boolean accept(PNode aNode)
      Return true if the filter should accept the given node.
      Parameters:
      aNode - node under test
      Returns:
      true if node should be accepted
    • acceptChildrenOf

      boolean acceptChildrenOf(PNode aNode)
      Return true if the filter should test the children of the given node for acceptance.
      Parameters:
      aNode - parent being tested
      Returns:
      true if children should be tested for acceptance