Class Exclusion

java.lang.Object
org.apache.maven.model.Exclusion
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

public class Exclusion extends Object implements Serializable, Cloneable, InputLocationTracker
The <exclusion> element contains informations required to exclude an artifact to the project.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Exclusion

      public Exclusion()
  • Method Details

    • clone

      public Exclusion clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      Exclusion
    • getArtifactId

      public String getArtifactId()
      Get the artifact ID of the project to exclude.
      Returns:
      String
    • getGroupId

      public String getGroupId()
      Get the group ID of the project to exclude.
      Returns:
      String
    • 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.
    • setArtifactId

      public void setArtifactId(String artifactId)
      Set the artifact ID of the project to exclude.
      Parameters:
      artifactId - a artifactId object.
    • setGroupId

      public void setGroupId(String groupId)
      Set the group ID of the project to exclude.
      Parameters:
      groupId - a groupId object.