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. -
Method Summary
Modifier and TypeMethodDescriptionDescribe the directory where the resources are stored.getLocation
(Object key) Gets the location of the specified field in the input source.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, getIncludes, newBuilder, newBuilder
-
Method Details
-
getDirectory
Describe the directory where the resources are stored. The path is relative to the POM.- Returns:
- a
String
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classPatternSet
-
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:
-