Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdeveloper.java.filter
Interface ClassNameFilter

All Known Implementing Classes:
PatternMatchNameFilter, SimpleNameFilter

public interface ClassNameFilter

The ClassNameFilter is an interface to support filtering based on class name, such as when fetching a list of classes from a JavaClassLocator. Clients can encapsulate their filtering requirements into a ClassNameFilter implementation.

See Also:
JavaClassLocator

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.
 void setMatchName(java.lang.String matchName)
          Sets the text to use when testing whether or not a class name is accepted.
 

Method Detail

acceptClassName

boolean acceptClassName(java.lang.String className,
                        java.lang.String packagePrefix)
Check whether the given class name should be accepted by the filter implementation. The package prefix is provided also for those implementations that operate on the entire fully-qualified class name.

Parameters:
className - the unqualified class name
packagePrefix - the package prefix
Returns:
true if the filter accepts the given name, false otherwise

setMatchName

void setMatchName(java.lang.String matchName)
Sets the text to use when testing whether or not a class name is accepted.

Parameters:
matchName - the name to match

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.