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 void
addExclude(java.lang.String string)
Method addExclude.void
addInclude(java.lang.String string)
Method addInclude.PatternSet
clone()
Method clone.java.util.List<java.lang.String>
getExcludes()
Method getExcludes.java.util.List<java.lang.String>
getIncludes()
Method getIncludes.InputLocation
getLocation(java.lang.Object key)
Gets the location of the specified field in the input source.void
removeExclude(java.lang.String string)
Method removeExclude.void
removeInclude(java.lang.String string)
Method removeInclude.void
setExcludes(java.util.List<java.lang.String> excludes)
Set a list of patterns to exclude, e.g.void
setIncludes(java.util.List<java.lang.String> includes)
Set a list of patterns to include, e.g.void
setLocation(java.lang.Object key, InputLocation location)
Sets the location of the specified field.void
setOtherLocation(java.lang.Object key, InputLocation location)
java.lang.String
toString()
-
-
-
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:
clone
in 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: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(java.lang.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(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:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-