Extension SDK 10.1.3.36.73

oracle.jdeveloper.java.filter
Interface ClassNameFilter

All Known Implementing Classes:
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

public 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

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


Extension SDK 10.1.3.36.73

 

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