Interface IModelObjectTreeSearchEngine


  • public interface IModelObjectTreeSearchEngine
    The search engine among MdObject's. The search results are collected to the trie. The path of the MdObject in the trie matches its path in the navigator tree.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project, String regex, boolean onlyInNames, boolean bySynonym, boolean storeEObjectDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
      Runs search among all MdObject's according to the special regular expression.
      IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project, String regex, Collection<org.eclipse.emf.ecore.EClass> eClasses, boolean onlyInNames, boolean bySynonym, boolean storeEObjectDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
      Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern.
      IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project, String regex, Collection<org.eclipse.emf.ecore.EClass> eClasses, Collection<org.eclipse.emf.ecore.EClass> eClassesFilterBy, boolean onlyInNames, boolean bySynonym, boolean storeEObjectDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
      Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern.
      IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project, Pattern pattern, boolean onlyInNames, boolean bySynonym, boolean storeEObjectDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
      Runs search among all MdObject's according to the special pattern.
      IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project, Pattern pattern, Collection<org.eclipse.emf.ecore.EClass> eClasses, boolean onlyInNames, boolean bySynonym, boolean storeEObjectDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
      Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern.
      IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project, Pattern pattern, Collection<org.eclipse.emf.ecore.EClass> eClasses, Collection<org.eclipse.emf.ecore.EClass> eClassesFilterBy, boolean onlyInNames, boolean bySynonym, boolean storeEObjectDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
      Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern.
    • Method Detail

      • runSearch

        IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project,
                               String regex,
                               boolean onlyInNames,
                               boolean bySynonym,
                               boolean storeEObjectDescription,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
        Runs search among all MdObject's according to the special regular expression.
        Parameters:
        project - the project MdObject's belongs to, can not be null
        regex - the special regular expression to search by, can not be null
        onlyInNames - true if to run search only by names (getName()) and false if to to run search as by names and by types
        bySynonym - defines whether to search by synonym (getSynonym())
        storeEObjectDescription - defines whether to store IEObjectDescription in trie nodes
        monitor - actual IProgressMonitor, can't be null
        Returns:
        the IEObjectTrie containing the search results, can not be null
      • runSearch

        IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project,
                               Pattern pattern,
                               boolean onlyInNames,
                               boolean bySynonym,
                               boolean storeEObjectDescription,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
        Runs search among all MdObject's according to the special pattern.
        Parameters:
        project - the project MdObject's belongs to, can not be null
        pattern - the special Pattern to search by, can not be null
        onlyInNames - true if to run search only by names (getName()) and false if to to run search as by names and by types
        bySynonym - defines whether to search by synonym (getSynonym())
        storeEObjectDescription - defines whether to store IEObjectDescription in trie nodes
        monitor - actual IProgressMonitor, can't be null
        Returns:
        the IEObjectTrie containing the search results, can not be null
      • runSearch

        IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project,
                               String regex,
                               Collection<org.eclipse.emf.ecore.EClass> eClasses,
                               boolean onlyInNames,
                               boolean bySynonym,
                               boolean storeEObjectDescription,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
        Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern.
        Parameters:
        project - the project MdObject's belongs to, can not be null
        regex - the special regular expression to search by, can not be null
        eClasses - the given collection of EClass'es to search among, can not be null
        onlyInNames - true if to run search only by names (getName()) and false if to to run search as by names and by types
        bySynonym - defines whether to search by synonym (getSynonym())
        storeEObjectDescription - defines whether to store IEObjectDescription in trie nodes
        monitor - actual IProgressMonitor, can't be null
        Returns:
        the IEObjectTrie containing the search results, can not be null
      • runSearch

        IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project,
                               Pattern pattern,
                               Collection<org.eclipse.emf.ecore.EClass> eClasses,
                               boolean onlyInNames,
                               boolean bySynonym,
                               boolean storeEObjectDescription,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
        Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern.
        Parameters:
        project - the project MdObject's belongs to, can not be null
        pattern - the special Pattern to search by, can not be null
        eClasses - the given collection of EClass'es to search among, can not be null
        onlyInNames - true if to run search only by names (getName()) and false if to to run search as by names and by types
        bySynonym - defines whether to search by synonym (getSynonym())
        storeEObjectDescription - defines whether to store IEObjectDescription in trie nodes
        monitor - actual IProgressMonitor, can't be null
        Returns:
        the IEObjectTrie containing the search results, can not be null
      • runSearch

        IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project,
                               String regex,
                               Collection<org.eclipse.emf.ecore.EClass> eClasses,
                               Collection<org.eclipse.emf.ecore.EClass> eClassesFilterBy,
                               boolean onlyInNames,
                               boolean bySynonym,
                               boolean storeEObjectDescription,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
        Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern. Then filters the search trie by the given collections of EClass'es to filter by.
        Parameters:
        project - the project MdObject's belongs to, can not be null
        regex - the special regular expression to search by, can not be null
        eClasses - the given collection of EClass'es to search among, can not be null
        eClassesFilterBy - the collection of EClass'es to filter the search trie by, can be null
        onlyInNames - true if to run search only by names (getName()) and false if to to run search as by names and by types
        bySynonym - defines whether to search by synonym (getSynonym())
        storeEObjectDescription - defines whether to store IEObjectDescription in trie nodes
        monitor - actual IProgressMonitor, can't be null
        Returns:
        the IEObjectTrie containing the search results, can not be null
      • runSearch

        IEObjectTrie runSearch​(org.eclipse.core.resources.IProject project,
                               Pattern pattern,
                               Collection<org.eclipse.emf.ecore.EClass> eClasses,
                               Collection<org.eclipse.emf.ecore.EClass> eClassesFilterBy,
                               boolean onlyInNames,
                               boolean bySynonym,
                               boolean storeEObjectDescription,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
        Runs search among MdObject's the eClass which in the given collection of EClass'es according to the special pattern. Then filters the search trie by the given collections of EClass'es to filter by.
        Parameters:
        project - the project MdObject's belongs to, can not be null
        pattern - the special Pattern to search by, can not be null
        eClasses - the given collection of EClass'es to search among, can not be null
        eClassesFilterBy - the collection of EClass'es to filter the search trie by, can be null
        onlyInNames - true if to run search only by names (getName()) and false if to to run search as by names and by types
        bySynonym - defines whether to search by synonym (getSynonym())
        storeEObjectDescription - defines whether to store IEObjectDescription in trie nodes
        monitor - actual IProgressMonitor, can't be null
        Returns:
        the IEObjectTrie containing the search results, can not be null