View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.4.0,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.profiles;
25  
26  /**
27   * Root element of the profiles.xml file.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class ProfilesRoot
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Field profiles.
42       */
43      private java.util.List<Profile> profiles;
44  
45      /**
46       * Field activeProfiles.
47       */
48      private java.util.List<String> activeProfiles;
49  
50      /**
51       * Field modelEncoding.
52       */
53      private String modelEncoding = "UTF-8";
54  
55  
56        //-----------/
57       //- Methods -/
58      //-----------/
59  
60      /**
61       * Method addActiveProfile.
62       * 
63       * @param string a string object.
64       */
65      public void addActiveProfile( String string )
66      {
67          getActiveProfiles().add( string );
68      } //-- void addActiveProfile( String )
69  
70      /**
71       * Method addProfile.
72       * 
73       * @param profile a profile object.
74       */
75      public void addProfile( Profile profile )
76      {
77          getProfiles().add( profile );
78      } //-- void addProfile( Profile )
79  
80      /**
81       * Method getActiveProfiles.
82       * 
83       * @return List
84       */
85      public java.util.List<String> getActiveProfiles()
86      {
87          if ( this.activeProfiles == null )
88          {
89              this.activeProfiles = new java.util.ArrayList<String>();
90          }
91  
92          return this.activeProfiles;
93      } //-- java.util.List<String> getActiveProfiles()
94  
95      /**
96       * Get the modelEncoding field.
97       * 
98       * @return String
99       */
100     public String getModelEncoding()
101     {
102         return this.modelEncoding;
103     } //-- String getModelEncoding()
104 
105     /**
106      * Method getProfiles.
107      * 
108      * @return List
109      */
110     public java.util.List<Profile> getProfiles()
111     {
112         if ( this.profiles == null )
113         {
114             this.profiles = new java.util.ArrayList<Profile>();
115         }
116 
117         return this.profiles;
118     } //-- java.util.List<Profile> getProfiles()
119 
120     /**
121      * Method removeActiveProfile.
122      * 
123      * @param string a string object.
124      */
125     public void removeActiveProfile( String string )
126     {
127         getActiveProfiles().remove( string );
128     } //-- void removeActiveProfile( String )
129 
130     /**
131      * Method removeProfile.
132      * 
133      * @param profile a profile object.
134      */
135     public void removeProfile( Profile profile )
136     {
137         getProfiles().remove( profile );
138     } //-- void removeProfile( Profile )
139 
140     /**
141      * Set list of manually-activated build profiles, specified in
142      * the order in which
143      *             they should be applied.
144      * 
145      * @param activeProfiles a activeProfiles object.
146      */
147     public void setActiveProfiles( java.util.List<String> activeProfiles )
148     {
149         this.activeProfiles = activeProfiles;
150     } //-- void setActiveProfiles( java.util.List )
151 
152     /**
153      * Set the modelEncoding field.
154      * 
155      * @param modelEncoding a modelEncoding object.
156      */
157     public void setModelEncoding( String modelEncoding )
158     {
159         this.modelEncoding = modelEncoding;
160     } //-- void setModelEncoding( String )
161 
162     /**
163      * Set configuration of build profiles for adjusting the build
164      *             according to environmental parameters.
165      * 
166      * @param profiles a profiles object.
167      */
168     public void setProfiles( java.util.List<Profile> profiles )
169     {
170         this.profiles = profiles;
171     } //-- void setProfiles( java.util.List )
172 
173 }