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