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
public class PatternSet extends Object implements Serializable, 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 void
addExclude(String string)
Method addExclude.void
addInclude(String string)
Method addInclude.PatternSet
clone()
Method clone.List<String>
getExcludes()
Method getExcludes.List<String>
getIncludes()
Method getIncludes.InputLocation
getLocation(Object key)
Gets the location of the specified field in the input source.void
removeExclude(String string)
Method removeExclude.void
removeInclude(String string)
Method removeInclude.void
setExcludes(List<String> excludes)
Set a list of patterns to exclude, e.g.void
setIncludes(List<String> includes)
Set a list of patterns to include, e.g.void
setLocation(Object key, InputLocation location)
Sets the location of the specified field.void
setOtherLocation(Object key, InputLocation location)
String
toString()
-
-
-
Method Detail
-
addExclude
public void addExclude(String string)
Method addExclude.- Parameters:
string
- a string object.
-
addInclude
public void addInclude(String string)
Method addInclude.- Parameters:
string
- a string object.
-
clone
public PatternSet clone()
Method clone.
-
getLocation
public InputLocation getLocation(Object key)
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setLocation
public void setLocation(Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
public void setOtherLocation(Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
removeExclude
public void removeExclude(String string)
Method removeExclude.- Parameters:
string
- a string object.
-
removeInclude
public void removeInclude(String string)
Method removeInclude.- Parameters:
string
- a string object.
-
setExcludes
public void setExcludes(List<String> excludes)
Set a list of patterns to exclude, e.g.**/*.xml
- Parameters:
excludes
- a excludes object.
-
setIncludes
public void setIncludes(List<String> includes)
Set a list of patterns to include, e.g.**/*.xml
.- Parameters:
includes
- a includes object.
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-