|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.java.filter.SimpleNameFilter
public class SimpleNameFilter
The SimpleClassNameFilter
is a basic implementation of
the ClassNameFilter
and PackageNameFilter
interface. It supports class name (ClassNameFilter
) or
package prefix (PackageNameFilter
) by whole name, prefix,
suffix, or substring matches.
Note that when used as a ClassNameFilter
, the
packagePrefix
is ignored in acceptClassName()
.
ClassNameFilter
,
PackageNameFilter
Field Summary | |
---|---|
protected boolean |
_matchCase
Whether we are matching case (case-sensitive). |
protected java.lang.String |
_matchName
The name that we are using for the match. |
protected int |
_matchType
The requested match type of behavior, i.e., MATCH_WHOLE. |
static int |
MATCH_PREFIX
Constant indicating that the name should be used for a prefix match. |
static int |
MATCH_SUBSTRING
Constant indicating that the name should be used for a substring match. |
static int |
MATCH_SUFFIX
Constant indicating that the name should be used for a suffix match. |
static int |
MATCH_WHOLE
Constant indicating that the whole name should be matched |
Constructor Summary | |
---|---|
SimpleNameFilter(java.lang.String matchName,
boolean matchCase,
int matchType)
Construct a filter based on the given name, case, and type information. |
Method Summary | |
---|---|
boolean |
acceptClassName(java.lang.String className,
java.lang.String packagePrefix)
Check whether the given class name should be accepted by the filter implementation. |
boolean |
acceptName(java.lang.String testName)
Check whether the given name (class or package name) should be accepted by the filter implementation. |
boolean |
acceptPackageName(java.lang.String packageName)
Check whether the given package name should be accepted by the filter implementation. |
boolean |
getMatchCase()
Fetch whether we are suppose to match case for the search. |
java.lang.String |
getMatchName()
Fetch the name we are using for the match. |
int |
getMatchType()
Fetch the match type requested. |
void |
setMatchName(java.lang.String matchName)
Sets the text to use to determine whether a name is accepted by the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MATCH_WHOLE
public static final int MATCH_PREFIX
public static final int MATCH_SUBSTRING
public static final int MATCH_SUFFIX
protected int _matchType
protected boolean _matchCase
protected java.lang.String _matchName
Constructor Detail |
---|
public SimpleNameFilter(java.lang.String matchName, boolean matchCase, int matchType)
matchName
- the name we are matchingmatchCase
- whether to match case, true for case-sensitive matchesmatchType
- the type of match we are performing with the name,
such as MATCH_WHOLEMethod Detail |
---|
public int getMatchType()
public boolean getMatchCase()
public java.lang.String getMatchName()
public void setMatchName(java.lang.String matchName)
setMatchName
in interface ClassNameFilter
setMatchName
in interface PackageNameFilter
matchText
- the text to matchpublic boolean acceptClassName(java.lang.String className, java.lang.String packagePrefix)
acceptClassName
in interface ClassNameFilter
className
- the unqualified class namepackagePrefix
- the package prefix
public boolean acceptPackageName(java.lang.String packageName)
acceptPackageName
in interface PackageNameFilter
packageName
- the package name
public boolean acceptName(java.lang.String testName)
name
- the name to search against
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |