Class SearchReplaceController.SearchOptions

  • Enclosing interface:
    SearchReplaceController

    public static class SearchReplaceController.SearchOptions
    extends Object
    Class that wraps the different possible options of search and provides various useful constructors.
    • Constructor Detail

      • SearchOptions

        public SearchOptions​(Node[] nodesToSearch,
                             Pattern regexPattern)
        Setup options to search on nodes with the given pattern. If nodesToSearch is null, all nodes of the graph will be used.
        Parameters:
        nodesToSearch -
        regexPattern -
      • SearchOptions

        public SearchOptions​(Edge[] edgesToSearch,
                             Pattern regexPattern)
        Setup options to search on edges with the given pattern. If edgesToSearch is null, all edges of the graph will be used.
        Parameters:
        edgesToSearch -
        regexPattern -
      • SearchOptions

        public SearchOptions​(Node[] nodesToSearch,
                             Pattern regexPattern,
                             boolean onlyMatchWholeAttributeValue)
        Setup options to search on nodes with the given pattern. If nodesToSearch is null, all nodes of the graph will be used.
        Parameters:
        nodesToSearch -
        regexPattern -
        onlyMatchWholeAttributeValue -
      • SearchOptions

        public SearchOptions​(Edge[] edgesToSearch,
                             Pattern regexPattern,
                             boolean onlyMatchWholeAttributeValue)
        Setup options to search on edges with the given pattern. If edgesToSearch is null, all edges of the graph will be used.
        Parameters:
        edgesToSearch -
        regexPattern -
        onlyMatchWholeAttributeValue -
    • Method Detail

      • resetStatus

        public void resetStatus()
      • getEdgesToSearch

        public Edge[] getEdgesToSearch()
        Getters and setters
      • getNodesToSearch

        public Node[] getNodesToSearch()
      • isOnlyMatchWholeAttributeValue

        public boolean isOnlyMatchWholeAttributeValue()
      • setOnlyMatchWholeAttributeValue

        public void setOnlyMatchWholeAttributeValue​(boolean onlyMatchWholeAttributeValue)
      • getRegexPattern

        public Pattern getRegexPattern()
      • setRegexPattern

        public void setRegexPattern​(Pattern regexPattern)
      • getStartingColumn

        public Integer getStartingColumn()
      • setStartingColumn

        public void setStartingColumn​(Integer startingColumn)
      • getStartingRow

        public Integer getStartingRow()
      • setStartingRow

        public void setStartingRow​(Integer startingRow)
      • getColumnsToSearch

        public Set<Integer> getColumnsToSearch()
        Returns columns indexes to search
        Returns:
        Set with columns indexes to search
      • setColumnsToSearch

        public void setColumnsToSearch​(int[] columnsToSearch)
        Set column indexes that should be used to search with the current options. If columnsToSearch is empty, all columns will be used to search.
        Parameters:
        columnsToSearch - It is safe to specify invalid columns indexes, they will be ignored
      • setColumnsToSearch

        public void setColumnsToSearch​(Column[] columnsToSearch)
        Set column that should be used to search with the current options. If columnsToSearch is empty, all columns will be used to search.
        Parameters:
        columnsToSearch - It is safe to specify invalid columns, they will be ignored
      • isSearchNodes

        public boolean isSearchNodes()
      • getRegionStart

        public int getRegionStart()
      • setRegionStart

        public void setRegionStart​(int regionStart)
      • isUseRegexReplaceMode

        public boolean isUseRegexReplaceMode()
      • setUseRegexReplaceMode

        public void setUseRegexReplaceMode​(boolean useRegexReplaceMode)
      • isLoopToBeginning

        public boolean isLoopToBeginning()
      • setLoopToBeginning

        public void setLoopToBeginning​(boolean loopToBeginning)