jdepend.framework
Class PackageFilter
java.lang.Object
jdepend.framework.PackageFilter
public class PackageFilter
extends java.lang.Object
The
PackageFilter
class is used to filter imported
package names.
The default filter contains any packages declared in the
jdepend.properties
file, if such a file exists
either in the user's home directory or somewhere in the classpath.
- Mike Clark
- Clarkware Consulting, Inc.
PackageFilter() - Constructs a
PackageFilter instance containing
the filters specified in the jdepend.properties file,
if it exists.
|
PackageFilter(Collection packageNames) - Constructs a
PackageFilter instance with the
specified collection of package names to filter.
|
PackageFilter(File f) - Constructs a
PackageFilter instance containing
the filters contained in the specified file.
|
boolean | accept(String packageName) - Indicates whether the specified package name passes this package filter.
|
void | addPackage(String packageName)
|
void | addPackages(Collection packageNames)
|
Collection | getFilters() - Returns the collection of filtered package names.
|
PackageFilter
public PackageFilter()
Constructs a PackageFilter
instance containing
the filters specified in the jdepend.properties
file,
if it exists.
PackageFilter
public PackageFilter(Collection packageNames)
Constructs a PackageFilter
instance with the
specified collection of package names to filter.
packageNames
- Package names to filter.
PackageFilter
public PackageFilter(File f)
Constructs a PackageFilter
instance containing
the filters contained in the specified file.
f
- Property file.
accept
public boolean accept(String packageName)
Indicates whether the specified package name passes this package filter.
packageName
- Package name.
true
if the package name should be included;
false
otherwise.
addPackage
public void addPackage(String packageName)
addPackages
public void addPackages(Collection packageNames)
getFilters
public Collection getFilters()
Returns the collection of filtered package names.
- Filtered package names.
Copyright B) 1999-2005 Clarkware Consulting, Inc.