pl.edu.agh.cast.backward.editor.operation
Class FindNodesParameters

java.lang.Object
  extended by pl.edu.agh.cast.backward.editor.operation.FindNodesParameters

public class FindNodesParameters
extends Object

Class that represents parameters for node search operation.

Author:
AGH CAST Team

Field Summary
protected  boolean matchCase
          Whether case should be matched.
protected  String searchedText
          Text to search.
protected  boolean useWildcards
          Whether wild cards should be used.
protected  boolean wholeWord
          Whether whole words should be matched.
 
Constructor Summary
FindNodesParameters(String searchedText)
          Create new search parameters instance for given text.
 
Method Summary
 boolean equals(Object object)
          
 String getSearchedText()
           
 int hashCode()
          
 boolean isMatchCase()
           
 boolean isUseWildcards()
           
 boolean isWholeWord()
           
 void setMatchCase(boolean matchCase)
           
 void setSearchedText(String searchedText)
          Sets the searched text.
 void setUseWildcards(boolean useWildcards)
           
 void setWholeWord(boolean wholeWord)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchedText

protected String searchedText
Text to search.


wholeWord

protected boolean wholeWord
Whether whole words should be matched.


matchCase

protected boolean matchCase
Whether case should be matched.


useWildcards

protected boolean useWildcards
Whether wild cards should be used.

Constructor Detail

FindNodesParameters

public FindNodesParameters(String searchedText)
Create new search parameters instance for given text.

Parameters:
searchedText - text to search; cannot be null
Method Detail

getSearchedText

public String getSearchedText()

setSearchedText

public void setSearchedText(String searchedText)
Sets the searched text.

Parameters:
searchedText - text to search; cannot be null
Throws:
IllegalArgumentException - if searchedText is null

isWholeWord

public boolean isWholeWord()

setWholeWord

public void setWholeWord(boolean wholeWord)

isMatchCase

public boolean isMatchCase()

setMatchCase

public void setMatchCase(boolean matchCase)

isUseWildcards

public boolean isUseWildcards()

setUseWildcards

public void setUseWildcards(boolean useWildcards)

equals

public boolean equals(Object object)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.