Package org.apache.maven.jxr.pacman
Class PackageManager
- java.lang.Object
-
- org.apache.maven.jxr.pacman.PackageManager
-
public class PackageManager extends java.lang.ObjectGiven a list of directories, parse them out and store them as rendered packages, classes, imports, etc.
-
-
Field Summary
Fields Modifier and Type Field Description private PackageTypedefaultPackageThe default Java package.private java.util.Set<java.nio.file.Path>directoriesprivate java.lang.String[]excludesThe list of exclude patterns to use.private FileManagerfileManagerprivate java.lang.String[]includesThe list of include patterns to use.private static org.slf4j.LoggerLOGGERprivate java.util.Map<java.lang.String,PackageType>packagesAll the packages that have been parsed
-
Constructor Summary
Constructors Constructor Description PackageManager(FileManager fileManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPackageType(PackageType packageType)Add a package to this package manager.voiddump()Dump the package information to STDOUT.PackageTypegetPackageType(java.lang.String name)Given the name of a package (Ex: org.apache.maven.util) obtain it from the package manager.java.util.Collection<PackageType>getPackageTypes()Gets all of the packages in this package manager.private voidparse(java.nio.file.Path baseDir)Parse out all the directories on which this depends.voidprocess(java.nio.file.Path directory)voidsetExcludes(java.lang.String[] excludes)voidsetIncludes(java.lang.String[] includes)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
fileManager
private final FileManager fileManager
-
directories
private java.util.Set<java.nio.file.Path> directories
-
packages
private java.util.Map<java.lang.String,PackageType> packages
All the packages that have been parsed
-
defaultPackage
private PackageType defaultPackage
The default Java package.
-
excludes
private java.lang.String[] excludes
The list of exclude patterns to use.
-
includes
private java.lang.String[] includes
The list of include patterns to use.
-
-
Constructor Detail
-
PackageManager
public PackageManager(FileManager fileManager)
-
-
Method Detail
-
getPackageType
public PackageType getPackageType(java.lang.String name)
Given the name of a package (Ex: org.apache.maven.util) obtain it from the package manager.- Parameters:
name- name of package- Returns:
- package type if found or default package type
-
addPackageType
public void addPackageType(PackageType packageType)
Add a package to this package manager.- Parameters:
packageType- package type to add
-
getPackageTypes
public java.util.Collection<PackageType> getPackageTypes()
Gets all of the packages in this package manager.- Returns:
- package types
-
parse
private void parse(java.nio.file.Path baseDir)
Parse out all the directories on which this depends.
-
process
public void process(java.nio.file.Path directory)
-
dump
public void dump()
Dump the package information to STDOUT. FOR DEBUG ONLY
-
setExcludes
public void setExcludes(java.lang.String[] excludes)
-
setIncludes
public void setIncludes(java.lang.String[] includes)
-
-