View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.3,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.model;
7   
8   /**
9    * 
10   *         
11   *         The <code>&lt;exclusion&gt;</code> element contains
12   * informations required to exclude
13   *         an artifact to the project.
14   *         
15   *       
16   * 
17   * @version $Revision: 965443 $ $Date: 2015-09-14 22:18:52 +0000 (Mon, 14 Sep 2015) $
18   */
19  @SuppressWarnings( "all" )
20  public class Exclusion
21      implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
22  {
23  
24        //--------------------------/
25       //- Class/Member Variables -/
26      //--------------------------/
27  
28      /**
29       * The artifact ID of the project to exclude.
30       */
31      private String artifactId;
32  
33      /**
34       * The group ID of the project to exclude.
35       */
36      private String groupId;
37  
38      /**
39       * Field locations.
40       */
41      private java.util.Map<Object, InputLocation> locations;
42  
43  
44        //-----------/
45       //- Methods -/
46      //-----------/
47  
48      /**
49       * Method clone.
50       * 
51       * @return Exclusion
52       */
53      public Exclusion clone()
54      {
55          try
56          {
57              Exclusion copy = (Exclusion) super.clone();
58  
59              if ( copy.locations != null )
60              {
61                  copy.locations = new java.util.LinkedHashMap( copy.locations );
62              }
63  
64              return copy;
65          }
66          catch ( java.lang.Exception ex )
67          {
68              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
69                  + " does not support clone()" ).initCause( ex );
70          }
71      } //-- Exclusion clone()
72  
73      /**
74       * Get the artifact ID of the project to exclude.
75       * 
76       * @return String
77       */
78      public String getArtifactId()
79      {
80          return this.artifactId;
81      } //-- String getArtifactId()
82  
83      /**
84       * Get the group ID of the project to exclude.
85       * 
86       * @return String
87       */
88      public String getGroupId()
89      {
90          return this.groupId;
91      } //-- String getGroupId()
92  
93      /**
94       * 
95       * 
96       * @param key
97       * @return InputLocation
98       */
99      public InputLocation getLocation( Object key )
100     {
101         return ( locations != null ) ? locations.get( key ) : null;
102     } //-- InputLocation getLocation( Object )
103 
104     /**
105      * Set the artifact ID of the project to exclude.
106      * 
107      * @param artifactId
108      */
109     public void setArtifactId( String artifactId )
110     {
111         this.artifactId = artifactId;
112     } //-- void setArtifactId( String )
113 
114     /**
115      * Set the group ID of the project to exclude.
116      * 
117      * @param groupId
118      */
119     public void setGroupId( String groupId )
120     {
121         this.groupId = groupId;
122     } //-- void setGroupId( String )
123 
124     /**
125      * 
126      * 
127      * @param key
128      * @param location
129      */
130     public void setLocation( Object key, InputLocation location )
131     {
132         if ( location != null )
133         {
134             if ( this.locations == null )
135             {
136                 this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
137             }
138             this.locations.put( key, location );
139         }
140     } //-- void setLocation( Object, InputLocation )
141 
142 }