|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResourceCollection
public abstract class AbstractPlexusIoResourceCollection
Default implementation of a resource collection.
Field Summary |
---|
Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection |
---|
DEFAULT_ROLE_HINT, ROLE |
Constructor Summary | |
---|---|
protected |
AbstractPlexusIoResourceCollection()
|
protected |
AbstractPlexusIoResourceCollection(org.codehaus.plexus.logging.Logger logger)
|
Method Summary | |
---|---|
void |
enableLogging(org.codehaus.plexus.logging.Logger logger)
|
java.lang.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. |
java.lang.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()
|
java.lang.String |
getName(PlexusIoResource resource)
Returns the resources suggested name. |
java.lang.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(java.lang.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(java.lang.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(java.lang.String prefix)
Sets the prefix, which the file sets contents shall have. |
void |
setUsingDefaultExcludes(boolean usingDefaultExcludes)
Sets, whether the default excludes are being applied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection |
---|
getResources |
Constructor Detail |
---|
protected AbstractPlexusIoResourceCollection()
protected AbstractPlexusIoResourceCollection(org.codehaus.plexus.logging.Logger logger)
Method Detail |
---|
protected org.codehaus.plexus.logging.Logger getLogger()
public void setExcludes(java.lang.String[] excludes)
public java.lang.String[] getExcludes()
public void setFileSelectors(FileSelector[] fileSelectors)
public FileSelector[] getFileSelectors()
public void setIncludes(java.lang.String[] includes)
public java.lang.String[] getIncludes()
public void setPrefix(java.lang.String prefix)
public java.lang.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 java.io.IOException
java.io.IOException
public FileMapper[] getFileMappers()
public void setFileMappers(FileMapper[] fileMappers)
public java.lang.String getName(PlexusIoResource resource) throws java.io.IOException
PlexusIoResourceCollection
getName
in interface PlexusIoResourceCollection
resource
- A resource, which has been obtained by
calling PlexusIoResourceCollection.getResources()
.
java.io.IOException
public long getLastModified() throws java.io.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.
java.io.IOException
public void enableLogging(org.codehaus.plexus.logging.Logger logger)
enableLogging
in interface org.codehaus.plexus.logging.LogEnabled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |