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
-
-
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.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()
-
-
-
Method Detail
-
addExclude
public void addExclude(java.lang.String string)
Method addExclude.- Parameters:
string- a string object.
-
addInclude
public void addInclude(java.lang.String string)
Method addInclude.- Parameters:
string- a string object.
-
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- a key object.- 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- a key object.location- a location object.
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key- a key object.location- a location object.
-
removeExclude
public void removeExclude(java.lang.String string)
Method removeExclude.- Parameters:
string- a string object.
-
removeInclude
public void removeInclude(java.lang.String string)
Method removeInclude.- Parameters:
string- a string object.
-
setExcludes
public void setExcludes(java.util.List<java.lang.String> excludes)
Set a list of patterns to exclude, e.g.**/*.xml- Parameters:
excludes- a excludes object.
-
setIncludes
public void setIncludes(java.util.List<java.lang.String> includes)
Set a list of patterns to include, e.g.**/*.xml.- Parameters:
includes- a includes object.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-