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