pl.edu.agh.cast.backward.editor.operation
Class FindNodesOperation

java.lang.Object
  extended by pl.edu.agh.cast.backward.editor.operation.FindNodesOperation

public class FindNodesOperation
extends Object

Find nodes operation.

Author:
AGH CAST Team

Constructor Summary
FindNodesOperation()
           
 
Method Summary
 Collection<Node> findAll(FindNodesParameters params, Collection<Node> nodesToSearch)
          Finds all Nodes matching given criteria.
 Node findNext(FindNodesParameters params, Collection<Node> nodesToSearch)
          Finds next Node matching given criteria.
protected  Collection<Node> findNodes(FindNodesParameters params, Collection<Node> nodesToSearch)
           
protected  Collection<Node> findNoWildcards(FindNodesParameters params, Collection<Node> nodesToSearch)
           
 Node findPrev(FindNodesParameters params, Collection<Node> nodesToSearch)
          Finds previous Node matching given criteria.
protected  Collection<Node> findUsingWildcards(FindNodesParameters params, Collection<Node> nodesToSearch)
           
 int foundCount()
          Returns count of found Nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindNodesOperation

public FindNodesOperation()
Method Detail

findAll

public Collection<Node> findAll(FindNodesParameters params,
                                Collection<Node> nodesToSearch)
Finds all Nodes matching given criteria.

Parameters:
params - find parameters
nodesToSearch - nodes to search from
Returns:
collection of all matching Nodes

findNext

public Node findNext(FindNodesParameters params,
                     Collection<Node> nodesToSearch)
Finds next Node matching given criteria.

Parameters:
params - find parameters
nodesToSearch - nodes to search from
Returns:
next matching Node

findPrev

public Node findPrev(FindNodesParameters params,
                     Collection<Node> nodesToSearch)
Finds previous Node matching given criteria.

Parameters:
params - find parameters
nodesToSearch - nodes to search from
Returns:
previous matching Node

foundCount

public int foundCount()
Returns count of found Nodes.

Returns:
count of found Nodes

findNodes

protected Collection<Node> findNodes(FindNodesParameters params,
                                     Collection<Node> nodesToSearch)

findUsingWildcards

protected Collection<Node> findUsingWildcards(FindNodesParameters params,
                                              Collection<Node> nodesToSearch)

findNoWildcards

protected Collection<Node> findNoWildcards(FindNodesParameters params,
                                           Collection<Node> nodesToSearch)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.