org.openbp.guiclient.model.item.itemfinder
Class NodeFinder

java.lang.Object
  extended by org.openbp.guiclient.model.item.itemfinder.FinderImpl
      extended by org.openbp.guiclient.model.item.itemfinder.NodeFinder
All Implemented Interfaces:
Finder
Direct Known Subclasses:
ProcessFinder

public abstract class NodeFinder
extends FinderImpl

Finder that is only used if the refrences can only be in the nodes e.g. ActivityFinder.

Author:
Baumgartner Michael

Constructor Summary
NodeFinder()
           
 
Method Summary
 java.util.List findModelObjectInModel(ModelObject mo, Model model)
          Find all references of the model object in the specified model.
protected abstract  java.util.List findModelObjectInNode(Node node, ModelObject mo)
          Scan the node if it uses the model object
protected  java.util.List scanModel(Model model, ModelObject core)
          Method that enables the finder to scan the elements of the model too.
 
Methods inherited from class org.openbp.guiclient.model.item.itemfinder.FinderImpl
addIfMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFinder

public NodeFinder()
Method Detail

findModelObjectInModel

public java.util.List findModelObjectInModel(ModelObject mo,
                                             Model model)
Description copied from interface: Finder
Find all references of the model object in the specified model. If no references are found an empty list is returned.

Parameters:
mo - The references of the model object are searched
model - The model to search in
Returns:
List containing ModelObject object that match the model object

findModelObjectInNode

protected abstract java.util.List findModelObjectInNode(Node node,
                                                        ModelObject mo)
Scan the node if it uses the model object

Parameters:
node - The node to scan
mo - The model object that references are searched
Returns:
List containing ModelObject object that match or an empty list

scanModel

protected java.util.List scanModel(Model model,
                                   ModelObject core)
Method that enables the finder to scan the elements of the model too.

Parameters:
model - The model to scan
core - The model object to search for
Returns:
List containing ModelObject object that match or an empty list


Copyright © 2011. All Rights Reserved.