public abstract class AbstractPlexusIoResourceCollection extends Object implements PlexusIoResourceCollection, org.codehaus.plexus.logging.LogEnabled
DEFAULT_ROLE_HINT, ROLE
Modifier | Constructor and Description |
---|---|
protected |
AbstractPlexusIoResourceCollection() |
protected |
AbstractPlexusIoResourceCollection(org.codehaus.plexus.logging.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
enableLogging(org.codehaus.plexus.logging.Logger logger) |
String[] |
getExcludes()
Returns a string of patterns, which excluded files
should match.
|
FileMapper[] |
getFileMappers()
Returns the file name mappers, which are used to transform
the resource names.
|
FileSelector[] |
getFileSelectors()
Returns a set of file selectors, which should be used
to select the included files.
|
String[] |
getIncludes()
Returns a string of patterns, which included files
should match.
|
long |
getLastModified()
Returns the collections last modification time.
|
protected org.codehaus.plexus.logging.Logger |
getLogger() |
String |
getName(PlexusIoResource resource)
Returns the resources suggested name.
|
String |
getPrefix()
Returns the prefix, which the file sets contents shall
have.
|
boolean |
isCaseSensitive()
Returns, whether the include/exclude patterns are
case sensitive.
|
boolean |
isIncludingEmptyDirectories()
Returns, whether empty directories are being included.
|
protected boolean |
isSelected(PlexusIoResource plexusIoResource) |
boolean |
isUsingDefaultExcludes()
Returns, whether the default excludes are being
applied.
|
void |
setCaseSensitive(boolean caseSensitive)
Sets, whether the include/exclude patterns are
case sensitive.
|
void |
setExcludes(String[] excludes)
Sets a string of patterns, which excluded files
should match.
|
void |
setFileMappers(FileMapper[] fileMappers)
Sets the file name mappers, which are used to transform
the resource names.
|
void |
setFileSelectors(FileSelector[] fileSelectors)
Sets a set of file selectors, which should be used
to select the included files.
|
void |
setIncludes(String[] includes)
Sets a string of patterns, which included files
should match.
|
void |
setIncludingEmptyDirectories(boolean includingEmptyDirectories)
Sets, whether empty directories are being included.
|
void |
setPrefix(String prefix)
Sets the prefix, which the file sets contents shall
have.
|
void |
setUsingDefaultExcludes(boolean usingDefaultExcludes)
Sets, whether the default excludes are being
applied.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResources
protected AbstractPlexusIoResourceCollection()
protected AbstractPlexusIoResourceCollection(org.codehaus.plexus.logging.Logger logger)
protected org.codehaus.plexus.logging.Logger getLogger()
public void setExcludes(String[] excludes)
public String[] getExcludes()
public void setFileSelectors(FileSelector[] fileSelectors)
public FileSelector[] getFileSelectors()
public void setIncludes(String[] includes)
public String[] getIncludes()
public void setPrefix(String prefix)
public String getPrefix()
public void setCaseSensitive(boolean caseSensitive)
public boolean isCaseSensitive()
public void setUsingDefaultExcludes(boolean usingDefaultExcludes)
public boolean isUsingDefaultExcludes()
public void setIncludingEmptyDirectories(boolean includingEmptyDirectories)
public boolean isIncludingEmptyDirectories()
protected boolean isSelected(PlexusIoResource plexusIoResource) throws IOException
IOException
public FileMapper[] getFileMappers()
public void setFileMappers(FileMapper[] fileMappers)
public String getName(PlexusIoResource resource) throws IOException
PlexusIoResourceCollection
getName
in interface PlexusIoResourceCollection
resource
- A resource, which has been obtained by
calling PlexusIoResourceCollection.getResources()
.IOException
- .public long getLastModified() throws IOException
PlexusIoResourceCollection
getLastModified
in interface PlexusIoResourceCollection
PlexusIoResource.UNKNOWN_MODIFICATION_DATE
,
if the collections last modification time is unknown,
otherwise the last modification time in milliseconds.IOException
- .public void enableLogging(org.codehaus.plexus.logging.Logger logger)
enableLogging
in interface org.codehaus.plexus.logging.LogEnabled
Copyright © 2001-2012 Codehaus. All Rights Reserved.