View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.9.1,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.plugins.assembly.model;
7   
8   /**
9    * 
10   *         Allows a group of artifacts to be aligned to a specified
11   * version.
12   *       
13   * 
14   * @version $Revision$ $Date$
15   */
16  @SuppressWarnings( "all" )
17  public class GroupVersionAlignment
18      implements java.io.Serializable
19  {
20  
21        //--------------------------/
22       //- Class/Member Variables -/
23      //--------------------------/
24  
25      /**
26       * 
27       *             The groupId of the artifacts for which you want
28       * to align the
29       *             versions.
30       *           
31       */
32      private String id;
33  
34      /**
35       * 
36       *             The version you want to align this group to.
37       *           
38       */
39      private String version;
40  
41      /**
42       * Field excludes.
43       */
44      private java.util.List<String> excludes;
45  
46  
47        //-----------/
48       //- Methods -/
49      //-----------/
50  
51      /**
52       * Method addExclude.
53       * 
54       * @param string
55       */
56      public void addExclude( String string )
57      {
58          getExcludes().add( string );
59      } //-- void addExclude( String )
60  
61      /**
62       * Method getExcludes.
63       * 
64       * @return List
65       */
66      public java.util.List<String> getExcludes()
67      {
68          if ( this.excludes == null )
69          {
70              this.excludes = new java.util.ArrayList<String>();
71          }
72  
73          return this.excludes;
74      } //-- java.util.List<String> getExcludes()
75  
76      /**
77       * Get the groupId of the artifacts for which you want to align
78       * the
79       *             versions.
80       * 
81       * @return String
82       */
83      public String getId()
84      {
85          return this.id;
86      } //-- String getId()
87  
88      /**
89       * Get the version you want to align this group to.
90       * 
91       * @return String
92       */
93      public String getVersion()
94      {
95          return this.version;
96      } //-- String getVersion()
97  
98      /**
99       * Method removeExclude.
100      * 
101      * @param string
102      */
103     public void removeExclude( String string )
104     {
105         getExcludes().remove( string );
106     } //-- void removeExclude( String )
107 
108     /**
109      * Set when &lt;exclude&gt; subelements are present, they
110      * define the
111      *             artifactIds of the artifacts to exclude. If none
112      * is present, then
113      *             &lt;excludes&gt; represents no exclusions. An
114      * exclude is specified
115      *             by providing one or more of &lt;exclude&gt;
116      * subelements.
117      * 
118      * @param excludes
119      */
120     public void setExcludes( java.util.List<String> excludes )
121     {
122         this.excludes = excludes;
123     } //-- void setExcludes( java.util.List )
124 
125     /**
126      * Set the groupId of the artifacts for which you want to align
127      * the
128      *             versions.
129      * 
130      * @param id
131      */
132     public void setId( String id )
133     {
134         this.id = id;
135     } //-- void setId( String )
136 
137     /**
138      * Set the version you want to align this group to.
139      * 
140      * @param version
141      */
142     public void setVersion( String version )
143     {
144         this.version = version;
145     } //-- void setVersion( String )
146 
147 }