forked from codehaus-plexus/plexus-archiver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBaseFileSet.java
77 lines (64 loc) · 1.72 KB
/
BaseFileSet.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package org.codehaus.plexus.archiver;
import javax.annotation.CheckForNull;
import org.codehaus.plexus.components.io.filemappers.FileMapper;
import org.codehaus.plexus.components.io.fileselectors.FileSelector;
import org.codehaus.plexus.components.io.functions.InputStreamTransformer;
/**
* A file set is a set of files, which may be added to an
* archive.
*
* @since 1.0-alpha-9
*/
public interface BaseFileSet
{
/**
* Returns the prefix, which the file sets contents shall
* have.
*/
@CheckForNull
String getPrefix();
/**
* Returns a string of patterns, which included files
* should match.
*/
@CheckForNull
String[] getIncludes();
/**
* Returns a string of patterns, which excluded files
* should match.
*/
@CheckForNull
String[] getExcludes();
/**
* Returns, whether the include/exclude patterns are
* case sensitive.
*/
boolean isCaseSensitive();
/**
* Returns, whether the default excludes are being
* applied.
*/
boolean isUsingDefaultExcludes();
/**
* Returns, whether empty directories are being included.
*/
boolean isIncludingEmptyDirectories();
/**
* Returns a set of file selectors, which should be used
* to select the included files.
*/
@CheckForNull
FileSelector[] getFileSelectors();
/**
* Returns the InputStreamTransformers that can be applied to this fileset
*
* @return The transformers.
*/
InputStreamTransformer getStreamTransformer();
/**
* Returns a set of file mappers, which should be used
* to change the filename of the included files.
*/
@CheckForNull
FileMapper[] getFileMappers();
}