Package org.apache.maven.api.model
Class PatternSet
java.lang.Object
org.apache.maven.api.model.PatternSet
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
- Direct Known Subclasses:
- FileSet
@Experimental
@Generated
@ThreadSafe
@Immutable
public class PatternSet
extends Object
implements Serializable, InputLocationTracker
Definition of include or exclude patterns.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PatternSet instances.
- 
Method SummaryModifier and TypeMethodDescriptionA list of patterns to exclude, e.g.A list of patterns to include, e.g.getLocation(Object key) Gets the location of the specified field in the input source.static PatternSet.BuilderCreates a newPatternSetbuilder instance.static PatternSet.BuildernewBuilder(boolean withDefaults) Creates a newPatternSetbuilder instance using default values or not.static PatternSet.BuildernewBuilder(PatternSet from) Creates a newPatternSetbuilder instance using the specified object as a basis.static PatternSet.BuildernewBuilder(PatternSet from, boolean forceCopy) Creates a newPatternSetbuilder instance using the specified object as a basis.static PatternSetCreates a newPatternSetinstance.static PatternSetnewInstance(boolean withDefaults) Creates a newPatternSetinstance using default values or not.toString()with()Creates a new builder with this object as the basis.withExcludes(Collection<String> excludes) Creates a newPatternSetinstance using the specified excludes.withIncludes(Collection<String> includes) Creates a newPatternSetinstance using the specified includes.
- 
Method Details- 
getIncludesA list of patterns to include, e.g.**/*.xml.- Returns:
- a List<String>
 
- 
getExcludesA list of patterns to exclude, e.g.**/*.xml- Returns:
- a List<String>
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withIncludesCreates a newPatternSetinstance using the specified includes.- Parameters:
- includes- the new- Collection<String>to use
- Returns:
- a PatternSetwith the specified includes
 
- 
withExcludesCreates a newPatternSetinstance using the specified excludes.- Parameters:
- excludes- the new- Collection<String>to use
- Returns:
- a PatternSetwith the specified excludes
 
- 
newInstanceCreates a newPatternSetinstance. Equivalent tonewInstance(true).- Returns:
- a new PatternSet
- See Also:
 
- 
newInstanceCreates a newPatternSetinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new PatternSet
 
- 
newBuilderCreates a newPatternSetbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newPatternSetbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPatternSetbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- PatternSetinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPatternSetbuilder instance using the specified object as a basis.- Parameters:
- from- the- PatternSetinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
toString
 
-