org.apache.maven.model
Class PatternSet

java.lang.Object
  extended by 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
PatternSet()
           
 
Method Summary
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternSet

public PatternSet()
Method Detail

addExclude

public void addExclude(String string)
Method addExclude.

Parameters:
string -

addInclude

public void addInclude(String string)
Method addInclude.

Parameters:
string -

clone

public PatternSet clone()
Method clone.

Overrides:
clone in class Object
Returns:
PatternSet

getExcludes

public List<String> getExcludes()
Method getExcludes.

Returns:
List

getIncludes

public List<String> getIncludes()
Method getIncludes.

Returns:
List

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 interface InputLocationTracker
Parameters:
key -
Returns:
InputLocation

removeExclude

public void removeExclude(String string)
Method removeExclude.

Parameters:
string -

removeInclude

public void removeInclude(String string)
Method removeInclude.

Parameters:
string -

setExcludes

public void setExcludes(List<String> excludes)
Set a list of patterns to exclude, e.g. **/*.xml

Parameters:
excludes -

setIncludes

public void setIncludes(List<String> includes)
Set a list of patterns to include, e.g. **/*.xml.

Parameters:
includes -

setLocation

public void setLocation(Object key,
                        InputLocation location)
Description copied from interface: InputLocationTracker
Sets the location of the specified field.

Specified by:
setLocation in interface InputLocationTracker
Parameters:
key -
location -

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.