|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface which represents a Searcher and provides required methods. The rules for searching within NodeField and NodeArrayField values are as follows: [1] Children of Group nodes will be recursively searched. [2] For other NodeField and NodeArrayField fields, the values will be searched for a match but not recursively. (e.g., The material field of an Appearance node is searched for a match)
Method Summary | |
Node[][] |
searchAll(Node root)
Given the parameters that have been set, search for all nodes that meet all of the criteria. |
Node[] |
searchFirst(Node root)
Given the parameters that have been set, search for the first node that meets all of the criteria. |
void |
setDefName(java.lang.String defNameOfNodeToSearchFor)
Sets a particular DEF name as a criterion for searching. |
void |
setNode(Node nodeToSearchFor)
Sets a particular node as a criterion for searching. |
void |
setType(java.lang.String typeToSearchFor)
Sets a particular node type as a criterion for searching. |
Method Detail |
public void setNode(Node nodeToSearchFor)
null
the criterion will not
be used in the search.nodeToSearchFor
- the node to search forpublic void setType(java.lang.String typeToSearchFor)
null
the criterion will not
be used in the search.typeToSearchFor
- the type to search forpublic void setDefName(java.lang.String defNameOfNodeToSearchFor)
null
the criterion will not
be used in the search.defNameOfNodeToSearchFor
- the DEF name to search forpublic Node[] searchFirst(Node root)
the
- root to search underpublic Node[][] searchAll(Node root)
the
- root to search under
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |