public abstract class AbstractDirectoryScannerPlugin<D extends DirectoryDescriptor> extends AbstractContainerScannerPlugin<File,File,D>
<p>Abstract base implementation for directory scanners.</p>
| Constructor and Description |
|---|
AbstractDirectoryScannerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(File item,
String path,
com.buschmais.jqassistant.core.scanner.api.Scope scope) |
protected String |
getContainerPath(File container,
String path)
<p>Return the normalized path to the container.
|
Class<D> |
getDescriptorType() |
protected Iterable<? extends File> |
getEntries(File container)
<p>Return an iterable which delivers the entries of the container.
|
protected Resource |
getEntry(File container,
File entry)
<p>Return a
Resource representing an entry. |
protected String |
getRelativePath(File container,
File entry)
<p>Return the relative path of an element within the container.
|
protected abstract com.buschmais.jqassistant.core.scanner.api.Scope |
getRequiredScope()
<p>Return the scope the plugin expects for execution.
|
Class<? extends File> |
getType() |
enterContainer, getContainerDescriptor, leaveContainer, scanconfigure, configure, equals, getBooleanProperty, getDirectoryPath, getName, getProperties, getProperty, getScannerContext, getStringProperty, getTypeParameter, hashCodepublic Class<? extends File> getType()
getType in interface com.buschmais.jqassistant.core.scanner.api.ScannerPlugin<File,D extends DirectoryDescriptor>getType in class AbstractResourceScannerPlugin<File,D extends DirectoryDescriptor>public Class<D> getDescriptorType()
getDescriptorType in interface com.buschmais.jqassistant.core.scanner.api.ScannerPlugin<File,D extends DirectoryDescriptor>getDescriptorType in class AbstractResourceScannerPlugin<File,D extends DirectoryDescriptor>public boolean accepts(File item, String path, com.buschmais.jqassistant.core.scanner.api.Scope scope) throws IOException
IOExceptionprotected Iterable<? extends File> getEntries(File container) throws IOException
AbstractContainerScannerPlugin<p>Return an iterable which delivers the entries of the container. <p> The entries must not contain the relative root element, i.e. "/". </p></p>
getEntries in class AbstractContainerScannerPlugin<File,File,D extends DirectoryDescriptor>container - The container.IOException - If the entries cannot be determined.protected abstract com.buschmais.jqassistant.core.scanner.api.Scope getRequiredScope()
<p>Return the scope the plugin expects for execution.</p>
protected String getContainerPath(File container, String path)
AbstractContainerScannerPlugin<p>Return the normalized path to the container.</p>
getContainerPath in class AbstractContainerScannerPlugin<File,File,D extends DirectoryDescriptor>container - The container.protected String getRelativePath(File container, File entry)
AbstractContainerScannerPlugin<p>Return the relative path of an element within the container. <p> The following conditions must be considered: <ul> <li>The separator to use is "/".</li> <li>The path must start with "/".</li> <li>The path must not end with "/".</li> </ul></p> <p></p></p>
getRelativePath in class AbstractContainerScannerPlugin<File,File,D extends DirectoryDescriptor>container - The container.entry - The entry.protected Resource getEntry(File container, File entry)
AbstractContainerScannerPlugin<p>Return a Resource representing an entry.</p>
getEntry in class AbstractContainerScannerPlugin<File,File,D extends DirectoryDescriptor>container - The container.entry - The entry.FileResource
.Copyright © 2016–2021 jQAssistant Development Team. All rights reserved.