Package org.apache.maven.api.model
Class FileSet
java.lang.Object
org.apache.maven.api.model.PatternSet
org.apache.maven.api.model.FileSet
- All Implemented Interfaces:
Serializable
,InputLocationTracker
- Direct Known Subclasses:
Resource
@Experimental
@Generated
@ThreadSafe
@Immutable
public class FileSet
extends PatternSet
implements Serializable, InputLocationTracker
A PatternSet for files.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create FileSet instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
FileSet
(FileSet.Builder builder) Constructor for this class, to be called from its subclasses andFileSet.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionDescribe the directory where the resources are stored.static FileSet.Builder
Creates a newFileSet
builder instance.static FileSet.Builder
newBuilder
(boolean withDefaults) Creates a newFileSet
builder instance using default values or not.static FileSet.Builder
newBuilder
(FileSet from) Creates a newFileSet
builder instance using the specified object as a basis.static FileSet.Builder
newBuilder
(FileSet from, boolean forceCopy) Creates a newFileSet
builder instance using the specified object as a basis.static FileSet
Creates a newFileSet
instance.static FileSet
newInstance
(boolean withDefaults) Creates a newFileSet
instance using default values or not.toString()
with()
Creates a new builder with this object as the basis.withDirectory
(String directory) Creates a newFileSet
instance using the specified directory.withExcludes
(Collection<String> excludes) Creates a newFileSet
instance using the specified excludes.withIncludes
(Collection<String> includes) Creates a newFileSet
instance using the specified includes.Methods inherited from class org.apache.maven.api.model.PatternSet
getExcludes, getImportedFrom, getIncludes, getLocation, getLocationKeys, getLocationKeyStream, newBuilder, newBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.api.model.InputLocationTracker
getImportedFrom, getLocation
-
Constructor Details
-
FileSet
Constructor for this class, to be called from its subclasses andFileSet.Builder
.- See Also:
-
-
Method Details
-
getDirectory
Describe the directory where the resources are stored. The path is relative to the POM.- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classPatternSet
- Returns:
- a
Builder
-
withIncludes
Creates a newFileSet
instance using the specified includes.- Overrides:
withIncludes
in classPatternSet
- Parameters:
includes
- the newCollection<String>
to use- Returns:
- a
FileSet
with the specified includes
-
withExcludes
Creates a newFileSet
instance using the specified excludes.- Overrides:
withExcludes
in classPatternSet
- Parameters:
excludes
- the newCollection<String>
to use- Returns:
- a
FileSet
with the specified excludes
-
withDirectory
Creates a newFileSet
instance using the specified directory.- Parameters:
directory
- the newString
to use- Returns:
- a
FileSet
with the specified directory
-
newInstance
Creates a newFileSet
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
FileSet
- See Also:
-
newInstance
Creates a newFileSet
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
FileSet
-
newBuilder
Creates a newFileSet
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newFileSet
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newFileSet
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theFileSet
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newFileSet
builder instance using the specified object as a basis.- Parameters:
from
- theFileSet
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
- Overrides:
toString
in classPatternSet
- See Also:
-