wt.csm.navigation
Class NavigationNodeSearch

java.lang.Object
  extended bywt.csm.navigation.NavigationNodeSearch

public class NavigationNodeSearch
extends Object

Pass in the fullPath of the node to search for node(s) that matches the search pattern. The very first part of the full path is the name of current navigation structure


Field Summary
private static String CLASSIFICATION_NAV_STRUCT
           
private  long classStructReference_key_id_idA3A6
           
private static String INDEPENDENT_NAV_STRUCT
           
private static String LIKE_STRING_BEGINSWITH
           
private static String LIKE_STRING_CONTAINS
           
private static String LIKE_STRING_ENDSWITH
           
private static String LIKE_STRING_EXACT
           
private  String navStructureClassName
           
private  String navStructureName
           
private  String srcPath
           
private  String srcPattern
           
private  String srcString
           
private  long thePersistInfo_theObjectIdentifier_id_idA2A2
           
 
Constructor Summary
NavigationNodeSearch(NavStructListView navStrTarget, String srcForString, String matching)
          This constructor takes:
NavigationNodeSearch(String navStructName, String srcForString, String matching)
          This constructor takes:
 
Method Summary
private  void findClassifiStructIdA3A6BasedOnIdA2A2()
          This method is to find the classStructReference_key_id_idA3A6 based on the Navigation structure ID (thePersistInfo_theObjectIdentifier_id_idA2A2) classStructReference_key_id_idA3A6 is used in the search in a ClassificationNavigationStructure
private  void findidA2A2BasedOnName()
          Condition: As far as I know right now, the navigation structure name is unique, so this method is safe.
private  QuerySpec formQuerySpec()
          Helper function to form a QuerySpec for the search
 Vector searchNodesInNavStruct()
          Search from the Navigation struct
 Vector searchNodesInSpecifiedParentNode(AbstractNodeNodeView navParentNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEPENDENT_NAV_STRUCT

private static final String INDEPENDENT_NAV_STRUCT
See Also:
Constant Field Values

CLASSIFICATION_NAV_STRUCT

private static final String CLASSIFICATION_NAV_STRUCT
See Also:
Constant Field Values

LIKE_STRING_EXACT

private static final String LIKE_STRING_EXACT
See Also:
Constant Field Values

LIKE_STRING_CONTAINS

private static final String LIKE_STRING_CONTAINS
See Also:
Constant Field Values

LIKE_STRING_BEGINSWITH

private static final String LIKE_STRING_BEGINSWITH
See Also:
Constant Field Values

LIKE_STRING_ENDSWITH

private static final String LIKE_STRING_ENDSWITH
See Also:
Constant Field Values

navStructureName

private String navStructureName

navStructureClassName

private String navStructureClassName

thePersistInfo_theObjectIdentifier_id_idA2A2

private long thePersistInfo_theObjectIdentifier_id_idA2A2

classStructReference_key_id_idA3A6

private long classStructReference_key_id_idA3A6

srcPath

private String srcPath

srcString

private String srcString

srcPattern

private String srcPattern
Constructor Detail

NavigationNodeSearch

public NavigationNodeSearch(NavStructListView navStrTarget,
                            String srcForString,
                            String matching)
This constructor takes:


NavigationNodeSearch

public NavigationNodeSearch(String navStructName,
                            String srcForString,
                            String matching)
This constructor takes:

Parameters:
navStructName - the NavStructListView name
Method Detail

findClassifiStructIdA3A6BasedOnIdA2A2

private void findClassifiStructIdA3A6BasedOnIdA2A2()
This method is to find the classStructReference_key_id_idA3A6 based on the Navigation structure ID (thePersistInfo_theObjectIdentifier_id_idA2A2) classStructReference_key_id_idA3A6 is used in the search in a ClassificationNavigationStructure


findidA2A2BasedOnName

private void findidA2A2BasedOnName()
Condition: As far as I know right now, the navigation structure name is unique, so this method is safe. This method is to find the thePersistInfo_theObjectIdentifier_id_idA2A2 based on the Navigation structure name. thePersistInfo_theObjectIdentifier_id_idA2A2 is used in the search


formQuerySpec

private QuerySpec formQuerySpec()
                         throws QueryException
Helper function to form a QuerySpec for the search

Throws:
QueryException

searchNodesInNavStruct

public Vector searchNodesInNavStruct()
                              throws WTException
Search from the Navigation struct

Returns:
a Vector of Vectors, each element vector contains information of one node found: * A vector of IndependentNodeNodeView OR ClassificationNodeNodeView objects starting at index 0 with the object representing the node itself to the object representing its target parent. * A vector of String names which form the full path from its root parent to the target node.
Throws:
WTException

searchNodesInSpecifiedParentNode

public Vector searchNodesInSpecifiedParentNode(AbstractNodeNodeView navParentNode)
                                        throws WTException,
                                               NullPointerException
Throws:
WTException
NullPointerException