Package org.apache.maven.model
Class PatternSet
java.lang.Object
org.apache.maven.model.PatternSet
- All Implemented Interfaces:
Serializable,Cloneable,InputLocationTracker
- Direct Known Subclasses:
FileSet
Definition of include or exclude patterns.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionField excludes.private InputLocationField excludesLocation.Field includes.private InputLocationField includesLocation.private InputLocationField location.private Map<Object, InputLocation> Field locations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclude(String string) Method addExclude.voidaddInclude(String string) Method addInclude.clone()Method clone.Method getExcludes.Method getIncludes.getLocation(Object key) Gets the location of the specified field in the input source.private InputLocationgetOtherLocation(Object key) voidremoveExclude(String string) Method removeExclude.voidremoveInclude(String string) Method removeInclude.voidsetExcludes(List<String> excludes) Set a list of patterns to exclude, e.g.voidsetIncludes(List<String> includes) Set a list of patterns to include, e.g.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetOtherLocation(Object key, InputLocation location) toString()
-
Field Details
-
includes
Field includes. -
excludes
Field excludes. -
locations
Field locations. -
location
Field location. -
includesLocation
Field includesLocation. -
excludesLocation
Field excludesLocation.
-
-
Constructor Details
-
PatternSet
public PatternSet()
-
-
Method Details
-
addExclude
Method addExclude.- Parameters:
string- a string object.
-
addInclude
Method addInclude.- Parameters:
string- a string object.
-
clone
Method clone. -
getExcludes
Method getExcludes.- Returns:
- List
-
getIncludes
Method getIncludes.- Returns:
- List
-
getLocation
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key- a key object.- Returns:
- InputLocation
-
setLocation
Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key- a key object.location- a location object.
-
setOtherLocation
- Parameters:
key- a key object.location- a location object.
-
getOtherLocation
- Parameters:
key- a key object.- Returns:
- InputLocation
-
removeExclude
Method removeExclude.- Parameters:
string- a string object.
-
removeInclude
Method removeInclude.- Parameters:
string- a string object.
-
setExcludes
Set a list of patterns to exclude, e.g.**/*.xml- Parameters:
excludes- a excludes object.
-
setIncludes
Set a list of patterns to include, e.g.**/*.xml.- Parameters:
includes- a includes object.
-
toString
-