站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

SearchPattern (Search API) - NetBeans API Javadoc (Current Development Version)

org.openidex.util/3 3.11

org.openidex.search
Class SearchPattern

java.lang.Object
  extended by org.openidex.search.SearchPattern

public final class SearchPattern
extends Object

Pattern describes the search conditions

Since:
org.openidex.util/3 3.5, NB 4.1

Method Summary
static SearchPattern create(String searchExpression, boolean wholeWords, boolean matchCase, boolean regExp)
          Creates a new SearchPattern in accordance with given parameters
 boolean equals(Object obj)
           
 String getSearchExpression()
           
 int hashCode()
           
 boolean isMatchCase()
           
 boolean isRegExp()
           
 boolean isWholeWords()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SearchPattern create(String searchExpression,
                                   boolean wholeWords,
                                   boolean matchCase,
                                   boolean regExp)
Creates a new SearchPattern in accordance with given parameters

Parameters:
searchExpression - non-null String of a searched text
wholeWords - if true, only whole words were searched
matchCase - if true, case sensitive search was preformed
regExp - if true, regular expression search was performed
Returns:
a new SearchPattern in accordance with given parameters

getSearchExpression

public String getSearchExpression()
Returns:
searchExpression

isWholeWords

public boolean isWholeWords()
Returns:
true if the wholeWords parameter was used during search performing

isMatchCase

public boolean isMatchCase()
Returns:
true if the matchCase parameter was used during search performing

isRegExp

public boolean isRegExp()
Returns:
true if the regExp parameter was used during search performing

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

org.openidex.util/3 3.11

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.