Class dnx.lr.NameSearchTraversal
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.NameSearchTraversal

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.util.DNXInstancedObject
                   |
                   +----dnx.lr.Action
                           |
                           +----dnx.lr.Traversal
                                   |
                                   +----dnx.lr.NodeTraversal
                                           |
                                           +----dnx.lr.NodeReturningTraversal
                                                   |
                                                   +----dnx.lr.NodeSearchTraversal
                                                           |
                                                           +----dnx.lr.NameSearchTraversal

public class NameSearchTraversal
extends NodeSearchTraversal
A traversal that searches for nodes with a specified name. This always does a COMPLETE_LEAF_TRAVERSAL, hitting all group, leaf, and subsidiary nodes. @see NodeSearchTraversal

Constructor Index

 o NameSearchTraversal(String)
Create a traversal, specifying the name that is looked for.
 o NameSearchTraversal(String, int)
Create a traversal, specifying the name that is looked for and the context interest.

Method Index

 o getTarget()
Return the name that is looked for.
 o isMatch(Node)
Don't call this yourself.
 o setTarget(String)
Set the name that is looked for.

Constructors

 o NameSearchTraversal
  public NameSearchTraversal(String name)
Create a traversal, specifying the name that is looked for. The context interest is NORMAL_NODES.
 o NameSearchTraversal
  public NameSearchTraversal(String name,
                             int contextInterest)
Create a traversal, specifying the name that is looked for and the context interest.

Methods

 o setTarget
  public void setTarget(String name)
Set the name that is looked for.
 o getTarget
  public String getTarget()
Return the name that is looked for.
 o isMatch
  public boolean isMatch(Node node)
Don't call this yourself. It's called automatically.
Overrides:
isMatch in class NodeSearchTraversal

All Packages  Class Hierarchy  This Package  Previous  Next  Index