Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ActivationProperty |
|
| 1.0;1 |
1 | /* | |
2 | * $Id$ | |
3 | */ | |
4 | ||
5 | package org.apache.maven.profiles; | |
6 | ||
7 | //---------------------------------/ | |
8 | //- Imported classes and packages -/ | |
9 | //---------------------------------/ | |
10 | ||
11 | import java.util.Date; | |
12 | ||
13 | /** | |
14 | * | |
15 | * This is the property specification used to activate a | |
16 | * profile. If the value field is empty, | |
17 | * then the existence of the named property will activate | |
18 | * the profile, otherwise it does a case-sensitive | |
19 | * match against the property value as well. | |
20 | * | |
21 | * | |
22 | * @version $Revision$ $Date$ | |
23 | */ | |
24 | 0 | public class ActivationProperty implements java.io.Serializable { |
25 | ||
26 | ||
27 | //--------------------------/ | |
28 | //- Class/Member Variables -/ | |
29 | //--------------------------/ | |
30 | ||
31 | /** | |
32 | * The name of the property to be used to activate a profile. | |
33 | */ | |
34 | private String name; | |
35 | ||
36 | /** | |
37 | * The value of the property to be used to activate a profile. | |
38 | */ | |
39 | private String value; | |
40 | ||
41 | ||
42 | //-----------/ | |
43 | //- Methods -/ | |
44 | //-----------/ | |
45 | ||
46 | /** | |
47 | * Get the name of the property to be used to activate a | |
48 | * profile. | |
49 | * | |
50 | * @return String | |
51 | */ | |
52 | public String getName() | |
53 | { | |
54 | 0 | return this.name; |
55 | } //-- String getName() | |
56 | ||
57 | /** | |
58 | * Get the value of the property to be used to activate a | |
59 | * profile. | |
60 | * | |
61 | * @return String | |
62 | */ | |
63 | public String getValue() | |
64 | { | |
65 | 0 | return this.value; |
66 | } //-- String getValue() | |
67 | ||
68 | /** | |
69 | * Set the name of the property to be used to activate a | |
70 | * profile. | |
71 | * | |
72 | * @param name | |
73 | */ | |
74 | public void setName( String name ) | |
75 | { | |
76 | 0 | this.name = name; |
77 | 0 | } //-- void setName( String ) |
78 | ||
79 | /** | |
80 | * Set the value of the property to be used to activate a | |
81 | * profile. | |
82 | * | |
83 | * @param value | |
84 | */ | |
85 | public void setValue( String value ) | |
86 | { | |
87 | 0 | this.value = value; |
88 | 0 | } //-- void setValue( String ) |
89 | ||
90 | ||
91 | 0 | private String modelEncoding = "UTF-8"; |
92 | ||
93 | /** | |
94 | * Set an encoding used for reading/writing the model. | |
95 | * | |
96 | * @param modelEncoding the encoding used when reading/writing the model. | |
97 | */ | |
98 | public void setModelEncoding( String modelEncoding ) | |
99 | { | |
100 | 0 | this.modelEncoding = modelEncoding; |
101 | 0 | } |
102 | ||
103 | /** | |
104 | * @return the current encoding used when reading/writing this model. | |
105 | */ | |
106 | public String getModelEncoding() | |
107 | { | |
108 | 0 | return modelEncoding; |
109 | } | |
110 | } |