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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create FileSet instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedFileSet(FileSet.Builder builder) Constructor for this class, to be called from its subclasses andFileSet.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionDescribe the directory where the resources are stored.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.static FileSet.BuilderCreates a newFileSetbuilder instance.static FileSet.BuildernewBuilder(boolean withDefaults) Creates a newFileSetbuilder instance using default values or not.static FileSet.BuildernewBuilder(FileSet from) Creates a newFileSetbuilder instance using the specified object as a basis.static FileSet.BuildernewBuilder(FileSet from, boolean forceCopy) Creates a newFileSetbuilder instance using the specified object as a basis.static FileSetCreates a newFileSetinstance.static FileSetnewInstance(boolean withDefaults) Creates a newFileSetinstance using default values or not.toString()with()Creates a new builder with this object as the basis.withDirectory(String directory) Creates a newFileSetinstance using the specified directory.withExcludes(Collection<String> excludes) Creates a newFileSetinstance using the specified excludes.withIncludes(Collection<String> includes) Creates a newFileSetinstance using the specified includes.Methods inherited from class org.apache.maven.api.model.PatternSetgetExcludes, getImportedFrom, getIncludes, newBuilder, newBuilderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTrackergetImportedFrom
- 
Constructor Details- 
FileSetConstructor for this class, to be called from its subclasses andFileSet.Builder.- See Also:
 
 
- 
- 
Method Details- 
getDirectoryDescribe the directory where the resources are stored. The path is relative to the POM.- Returns:
- a String
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- PatternSet
 
- 
getLocationKeysGets the keys of the locations of the input source.- Overrides:
- getLocationKeysin class- PatternSet
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- PatternSet
- Returns:
- a Builder
 
- 
withIncludesCreates a newFileSetinstance using the specified includes.- Overrides:
- withIncludesin class- PatternSet
- Parameters:
- includes- the new- Collection<String>to use
- Returns:
- a FileSetwith the specified includes
 
- 
withExcludesCreates a newFileSetinstance using the specified excludes.- Overrides:
- withExcludesin class- PatternSet
- Parameters:
- excludes- the new- Collection<String>to use
- Returns:
- a FileSetwith the specified excludes
 
- 
withDirectoryCreates a newFileSetinstance using the specified directory.- Parameters:
- directory- the new- Stringto use
- Returns:
- a FileSetwith the specified directory
 
- 
newInstanceCreates a newFileSetinstance. Equivalent tonewInstance(true).- Returns:
- a new FileSet
- See Also:
 
- 
newInstanceCreates a newFileSetinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new FileSet
 
- 
newBuilderCreates a newFileSetbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newFileSetbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newFileSetbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- FileSetinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newFileSetbuilder instance using the specified object as a basis.- Parameters:
- from- the- FileSetinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
toString- Overrides:
- toStringin class- PatternSet
- See Also:
 
 
-