Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ActivationFile |
|
| 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 the file specification used to activate a | |
17 | * profile. The missing value will be a the location | |
18 | * of a file that needs to exist, and if it doesn't the | |
19 | * profile must run. On the other hand exists will test | |
20 | * for the existence of the file and if it is there will | |
21 | * run the profile. | |
22 | * | |
23 | * | |
24 | * | |
25 | * @version $Revision$ $Date$ | |
26 | */ | |
27 | 0 | public class ActivationFile implements java.io.Serializable { |
28 | ||
29 | ||
30 | //--------------------------/ | |
31 | //- Class/Member Variables -/ | |
32 | //--------------------------/ | |
33 | ||
34 | /** | |
35 | * | |
36 | * The name of the file that should be missing to | |
37 | * activate a | |
38 | * profile. | |
39 | * | |
40 | */ | |
41 | private String missing; | |
42 | ||
43 | /** | |
44 | * | |
45 | * The name of the file that should exist to | |
46 | * activate a profile. | |
47 | * | |
48 | */ | |
49 | private String exists; | |
50 | ||
51 | ||
52 | //-----------/ | |
53 | //- Methods -/ | |
54 | //-----------/ | |
55 | ||
56 | /** | |
57 | * Get | |
58 | * The name of the file that should exist to | |
59 | * activate a profile. | |
60 | * | |
61 | * | |
62 | * @return String | |
63 | */ | |
64 | public String getExists() | |
65 | { | |
66 | 0 | return this.exists; |
67 | } //-- String getExists() | |
68 | ||
69 | /** | |
70 | * Get | |
71 | * The name of the file that should be missing to | |
72 | * activate a | |
73 | * profile. | |
74 | * | |
75 | * | |
76 | * @return String | |
77 | */ | |
78 | public String getMissing() | |
79 | { | |
80 | 0 | return this.missing; |
81 | } //-- String getMissing() | |
82 | ||
83 | /** | |
84 | * Set | |
85 | * The name of the file that should exist to | |
86 | * activate a profile. | |
87 | * | |
88 | * | |
89 | * @param exists | |
90 | */ | |
91 | public void setExists( String exists ) | |
92 | { | |
93 | 0 | this.exists = exists; |
94 | 0 | } //-- void setExists( String ) |
95 | ||
96 | /** | |
97 | * Set | |
98 | * The name of the file that should be missing to | |
99 | * activate a | |
100 | * profile. | |
101 | * | |
102 | * | |
103 | * @param missing | |
104 | */ | |
105 | public void setMissing( String missing ) | |
106 | { | |
107 | 0 | this.missing = missing; |
108 | 0 | } //-- void setMissing( String ) |
109 | ||
110 | ||
111 | 0 | private String modelEncoding = "UTF-8"; |
112 | ||
113 | /** | |
114 | * Set an encoding used for reading/writing the model. | |
115 | * | |
116 | * @param modelEncoding the encoding used when reading/writing the model. | |
117 | */ | |
118 | public void setModelEncoding( String modelEncoding ) | |
119 | { | |
120 | 0 | this.modelEncoding = modelEncoding; |
121 | 0 | } |
122 | ||
123 | /** | |
124 | * @return the current encoding used when reading/writing this model. | |
125 | */ | |
126 | public String getModelEncoding() | |
127 | { | |
128 | 0 | return modelEncoding; |
129 | } | |
130 | } |