Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
GroupVersionAlignment |
|
| 1.1;1.1 |
1 | /* | |
2 | * $Id$ | |
3 | */ | |
4 | ||
5 | package org.apache.maven.plugins.assembly.model; | |
6 | ||
7 | /** | |
8 | * Defines a Maven repository to be included in the assembly. | |
9 | * | |
10 | * @version $Revision$ $Date$ | |
11 | */ | |
12 | 0 | public class GroupVersionAlignment implements java.io.Serializable { |
13 | ||
14 | ||
15 | //--------------------------/ | |
16 | //- Class/Member Variables -/ | |
17 | //--------------------------/ | |
18 | ||
19 | /** | |
20 | * Field id | |
21 | */ | |
22 | private String id; | |
23 | ||
24 | /** | |
25 | * Field version | |
26 | */ | |
27 | private String version; | |
28 | ||
29 | /** | |
30 | * Field excludes | |
31 | */ | |
32 | private java.util.List excludes; | |
33 | ||
34 | ||
35 | //-----------/ | |
36 | //- Methods -/ | |
37 | //-----------/ | |
38 | ||
39 | /** | |
40 | * Method addExclude | |
41 | * | |
42 | * @param string | |
43 | */ | |
44 | public void addExclude(String string) | |
45 | { | |
46 | 0 | getExcludes().add( string ); |
47 | 0 | } //-- void addExclude(String) |
48 | ||
49 | /** | |
50 | * Method getExcludes | |
51 | */ | |
52 | public java.util.List getExcludes() | |
53 | { | |
54 | 0 | if ( this.excludes == null ) |
55 | { | |
56 | 0 | this.excludes = new java.util.ArrayList(); |
57 | } | |
58 | ||
59 | 0 | return this.excludes; |
60 | } //-- java.util.List getExcludes() | |
61 | ||
62 | /** | |
63 | * Get The groupId for which you want to align the versions. | |
64 | */ | |
65 | public String getId() | |
66 | { | |
67 | 0 | return this.id; |
68 | } //-- String getId() | |
69 | ||
70 | /** | |
71 | * Get The version you want to align this group to. | |
72 | */ | |
73 | public String getVersion() | |
74 | { | |
75 | 0 | return this.version; |
76 | } //-- String getVersion() | |
77 | ||
78 | /** | |
79 | * Method removeExclude | |
80 | * | |
81 | * @param string | |
82 | */ | |
83 | public void removeExclude(String string) | |
84 | { | |
85 | 0 | getExcludes().remove( string ); |
86 | 0 | } //-- void removeExclude(String) |
87 | ||
88 | /** | |
89 | * Set Artifact Ids of the artifacts you want excluded from | |
90 | * version alignment. | |
91 | * | |
92 | * @param excludes | |
93 | */ | |
94 | public void setExcludes(java.util.List excludes) | |
95 | { | |
96 | 0 | this.excludes = excludes; |
97 | 0 | } //-- void setExcludes(java.util.List) |
98 | ||
99 | /** | |
100 | * Set The groupId for which you want to align the versions. | |
101 | * | |
102 | * @param id | |
103 | */ | |
104 | public void setId(String id) | |
105 | { | |
106 | 0 | this.id = id; |
107 | 0 | } //-- void setId(String) |
108 | ||
109 | /** | |
110 | * Set The version you want to align this group to. | |
111 | * | |
112 | * @param version | |
113 | */ | |
114 | public void setVersion(String version) | |
115 | { | |
116 | 0 | this.version = version; |
117 | 0 | } //-- void setVersion(String) |
118 | ||
119 | ||
120 | 0 | private String modelEncoding = "UTF-8"; |
121 | ||
122 | public void setModelEncoding( String modelEncoding ) | |
123 | { | |
124 | 0 | this.modelEncoding = modelEncoding; |
125 | 0 | } |
126 | ||
127 | public String getModelEncoding() | |
128 | { | |
129 | 0 | return modelEncoding; |
130 | }} |