1
2
3
4
5
6
7
8 package org.apache.maven.profiles;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class ProfilesRoot
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27 private java.util.List<Profile> profiles;
28
29
30
31
32 private java.util.List<String> activeProfiles;
33
34
35
36
37 private String modelEncoding = "UTF-8";
38
39
40
41
42
43
44
45
46
47
48
49 public void addActiveProfile( String string )
50 {
51 getActiveProfiles().add( string );
52 }
53
54
55
56
57
58
59 public void addProfile( Profile profile )
60 {
61 getProfiles().add( profile );
62 }
63
64
65
66
67
68
69 public java.util.List<String> getActiveProfiles()
70 {
71 if ( this.activeProfiles == null )
72 {
73 this.activeProfiles = new java.util.ArrayList<String>();
74 }
75
76 return this.activeProfiles;
77 }
78
79
80
81
82
83
84 public String getModelEncoding()
85 {
86 return this.modelEncoding;
87 }
88
89
90
91
92
93
94 public java.util.List<Profile> getProfiles()
95 {
96 if ( this.profiles == null )
97 {
98 this.profiles = new java.util.ArrayList<Profile>();
99 }
100
101 return this.profiles;
102 }
103
104
105
106
107
108
109 public void removeActiveProfile( String string )
110 {
111 getActiveProfiles().remove( string );
112 }
113
114
115
116
117
118
119 public void removeProfile( Profile profile )
120 {
121 getProfiles().remove( profile );
122 }
123
124
125
126
127
128
129
130
131 public void setActiveProfiles( java.util.List<String> activeProfiles )
132 {
133 this.activeProfiles = activeProfiles;
134 }
135
136
137
138
139
140
141 public void setModelEncoding( String modelEncoding )
142 {
143 this.modelEncoding = modelEncoding;
144 }
145
146
147
148
149
150
151
152 public void setProfiles( java.util.List<Profile> profiles )
153 {
154 this.profiles = profiles;
155 }
156
157 }