Package org.apache.maven.model
Class PatternSet
- java.lang.Object
-
- org.apache.maven.model.PatternSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
- Direct Known Subclasses:
FileSet
public class PatternSet extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Definition of include or exclude patterns.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>excludesField excludes.private InputLocationexcludesLocationField excludesLocation.private java.util.List<java.lang.String>includesField includes.private InputLocationincludesLocationField includesLocation.private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.
-
Constructor Summary
Constructors Constructor Description PatternSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExclude(java.lang.String string)Method addExclude.voidaddInclude(java.lang.String string)Method addInclude.PatternSetclone()Method clone.java.util.List<java.lang.String>getExcludes()Method getExcludes.java.util.List<java.lang.String>getIncludes()Method getIncludes.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.private InputLocationgetOtherLocation(java.lang.Object key)voidremoveExclude(java.lang.String string)Method removeExclude.voidremoveInclude(java.lang.String string)Method removeInclude.voidsetExcludes(java.util.List<java.lang.String> excludes)Set a list of patterns to exclude, e.g.voidsetIncludes(java.util.List<java.lang.String> includes)Set a list of patterns to include, e.g.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetOtherLocation(java.lang.Object key, InputLocation location)java.lang.StringtoString()
-
-
-
Field Detail
-
includes
private java.util.List<java.lang.String> includes
Field includes.
-
excludes
private java.util.List<java.lang.String> excludes
Field excludes.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
includesLocation
private InputLocation includesLocation
Field includesLocation.
-
excludesLocation
private InputLocation excludesLocation
Field excludesLocation.
-
-
Method Detail
-
addExclude
public void addExclude(java.lang.String string)
Method addExclude.- Parameters:
string-
-
addInclude
public void addInclude(java.lang.String string)
Method addInclude.- Parameters:
string-
-
clone
public PatternSet clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- PatternSet
-
getExcludes
public java.util.List<java.lang.String> getExcludes()
Method getExcludes.- Returns:
- List
-
getIncludes
public java.util.List<java.lang.String> getIncludes()
Method getIncludes.- Returns:
- List
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
removeExclude
public void removeExclude(java.lang.String string)
Method removeExclude.- Parameters:
string-
-
removeInclude
public void removeInclude(java.lang.String string)
Method removeInclude.- Parameters:
string-
-
setExcludes
public void setExcludes(java.util.List<java.lang.String> excludes)
Set a list of patterns to exclude, e.g.**/*.xml- Parameters:
excludes-
-
setIncludes
public void setIncludes(java.util.List<java.lang.String> includes)
Set a list of patterns to include, e.g.**/*.xml.- Parameters:
includes-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-