Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ActivationOS |
|
| 1.0;1 |
1 | /* | |
2 | * $Id$ | |
3 | */ | |
4 | ||
5 | package org.apache.maven.settings; | |
6 | ||
7 | //---------------------------------/ | |
8 | //- Imported classes and packages -/ | |
9 | //---------------------------------/ | |
10 | ||
11 | import java.util.Date; | |
12 | ||
13 | /** | |
14 | * | |
15 | * | |
16 | * This is an activator which will detect an operating | |
17 | * system's attributes in order to activate | |
18 | * its profile. | |
19 | * | |
20 | * | |
21 | * | |
22 | * @version $Revision$ $Date$ | |
23 | */ | |
24 | 0 | public class ActivationOS implements java.io.Serializable { |
25 | ||
26 | ||
27 | //--------------------------/ | |
28 | //- Class/Member Variables -/ | |
29 | //--------------------------/ | |
30 | ||
31 | /** | |
32 | * | |
33 | * The name of the OS to be used to activate a | |
34 | * profile. | |
35 | * | |
36 | */ | |
37 | private String name; | |
38 | ||
39 | /** | |
40 | * | |
41 | * The general family of the OS to be used to | |
42 | * activate a | |
43 | * profile (e.g. 'windows') | |
44 | * . | |
45 | */ | |
46 | private String family; | |
47 | ||
48 | /** | |
49 | * | |
50 | * The architecture of the OS to be used to | |
51 | * activate a profile. | |
52 | * | |
53 | */ | |
54 | private String arch; | |
55 | ||
56 | /** | |
57 | * | |
58 | * The version of the OS to be used to activate a | |
59 | * profile. | |
60 | * | |
61 | */ | |
62 | private String version; | |
63 | ||
64 | ||
65 | //-----------/ | |
66 | //- Methods -/ | |
67 | //-----------/ | |
68 | ||
69 | /** | |
70 | * Get | |
71 | * The architecture of the OS to be used to | |
72 | * activate a profile. | |
73 | * | |
74 | * | |
75 | * @return String | |
76 | */ | |
77 | public String getArch() | |
78 | { | |
79 | 0 | return this.arch; |
80 | } //-- String getArch() | |
81 | ||
82 | /** | |
83 | * Get | |
84 | * The general family of the OS to be used to | |
85 | * activate a | |
86 | * profile (e.g. 'windows') | |
87 | * . | |
88 | * | |
89 | * @return String | |
90 | */ | |
91 | public String getFamily() | |
92 | { | |
93 | 0 | return this.family; |
94 | } //-- String getFamily() | |
95 | ||
96 | /** | |
97 | * Get | |
98 | * The name of the OS to be used to activate a | |
99 | * profile. | |
100 | * | |
101 | * | |
102 | * @return String | |
103 | */ | |
104 | public String getName() | |
105 | { | |
106 | 0 | return this.name; |
107 | } //-- String getName() | |
108 | ||
109 | /** | |
110 | * Get | |
111 | * The version of the OS to be used to activate a | |
112 | * profile. | |
113 | * | |
114 | * | |
115 | * @return String | |
116 | */ | |
117 | public String getVersion() | |
118 | { | |
119 | 0 | return this.version; |
120 | } //-- String getVersion() | |
121 | ||
122 | /** | |
123 | * Set | |
124 | * The architecture of the OS to be used to | |
125 | * activate a profile. | |
126 | * | |
127 | * | |
128 | * @param arch | |
129 | */ | |
130 | public void setArch( String arch ) | |
131 | { | |
132 | 0 | this.arch = arch; |
133 | 0 | } //-- void setArch( String ) |
134 | ||
135 | /** | |
136 | * Set | |
137 | * The general family of the OS to be used to | |
138 | * activate a | |
139 | * profile (e.g. 'windows') | |
140 | * . | |
141 | * | |
142 | * @param family | |
143 | */ | |
144 | public void setFamily( String family ) | |
145 | { | |
146 | 0 | this.family = family; |
147 | 0 | } //-- void setFamily( String ) |
148 | ||
149 | /** | |
150 | * Set | |
151 | * The name of the OS to be used to activate a | |
152 | * profile. | |
153 | * | |
154 | * | |
155 | * @param name | |
156 | */ | |
157 | public void setName( String name ) | |
158 | { | |
159 | 0 | this.name = name; |
160 | 0 | } //-- void setName( String ) |
161 | ||
162 | /** | |
163 | * Set | |
164 | * The version of the OS to be used to activate a | |
165 | * profile. | |
166 | * | |
167 | * | |
168 | * @param version | |
169 | */ | |
170 | public void setVersion( String version ) | |
171 | { | |
172 | 0 | this.version = version; |
173 | 0 | } //-- void setVersion( String ) |
174 | ||
175 | ||
176 | 0 | private String modelEncoding = "UTF-8"; |
177 | ||
178 | /** | |
179 | * Set an encoding used for reading/writing the model. | |
180 | * | |
181 | * @param modelEncoding the encoding used when reading/writing the model. | |
182 | */ | |
183 | public void setModelEncoding( String modelEncoding ) | |
184 | { | |
185 | 0 | this.modelEncoding = modelEncoding; |
186 | 0 | } |
187 | ||
188 | /** | |
189 | * @return the current encoding used when reading/writing this model. | |
190 | */ | |
191 | public String getModelEncoding() | |
192 | { | |
193 | 0 | return modelEncoding; |
194 | } | |
195 | } |