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:
  • Constructor Details

    • PatternSet

      public PatternSet()
  • Method Details

    • 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.
      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 - 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 interface InputLocationTracker
      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 class Object
      See Also: