Package org.apache.maven.model
Class Exclusion
- java.lang.Object
-
- org.apache.maven.model.Exclusion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,InputLocationTracker
public class Exclusion extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
The<exclusion>
element contains informations required to exclude an artifact to the project.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
artifactId
The artifact ID of the project to exclude.private InputLocation
artifactIdLocation
Field artifactIdLocation.private java.lang.String
groupId
The group ID of the project to exclude.private InputLocation
groupIdLocation
Field groupIdLocation.private InputLocation
location
Field location.private java.util.Map<java.lang.Object,InputLocation>
locations
Field locations.
-
Constructor Summary
Constructors Constructor Description Exclusion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exclusion
clone()
Method clone.java.lang.String
getArtifactId()
Get the artifact ID of the project to exclude.java.lang.String
getGroupId()
Get the group ID of the project to exclude.InputLocation
getLocation(java.lang.Object key)
Gets the location of the specified field in the input source.private InputLocation
getOtherLocation(java.lang.Object key)
void
setArtifactId(java.lang.String artifactId)
Set the artifact ID of the project to exclude.void
setGroupId(java.lang.String groupId)
Set the group ID of the project to exclude.void
setLocation(java.lang.Object key, InputLocation location)
Sets the location of the specified field.void
setOtherLocation(java.lang.Object key, InputLocation location)
-
-
-
Field Detail
-
groupId
private java.lang.String groupId
The group ID of the project to exclude.
-
artifactId
private java.lang.String artifactId
The artifact ID of the project to exclude.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
groupIdLocation
private InputLocation groupIdLocation
Field groupIdLocation.
-
artifactIdLocation
private InputLocation artifactIdLocation
Field artifactIdLocation.
-
-
Method Detail
-
clone
public Exclusion clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- Exclusion
-
getArtifactId
public java.lang.String getArtifactId()
Get the artifact ID of the project to exclude.- Returns:
- String
-
getGroupId
public java.lang.String getGroupId()
Get the group ID of the project to exclude.- Returns:
- String
-
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
-- 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
-location
-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)
- Parameters:
key
-location
-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key
-- Returns:
- InputLocation
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
Set the artifact ID of the project to exclude.- Parameters:
artifactId
-
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the group ID of the project to exclude.- Parameters:
groupId
-
-
-