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