View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2012-01-20 18:05:13,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.profiles;
9   
10  /**
11   * Root element of the profiles.xml file.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class ProfilesRoot
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * Field profiles.
26       */
27      private java.util.List<Profile> profiles;
28  
29      /**
30       * Field activeProfiles.
31       */
32      private java.util.List<String> activeProfiles;
33  
34      /**
35       * Field modelEncoding.
36       */
37      private String modelEncoding = "UTF-8";
38  
39  
40        //-----------/
41       //- Methods -/
42      //-----------/
43  
44      /**
45       * Method addActiveProfile.
46       * 
47       * @param string
48       */
49      public void addActiveProfile( String string )
50      {
51          getActiveProfiles().add( string );
52      } //-- void addActiveProfile( String )
53  
54      /**
55       * Method addProfile.
56       * 
57       * @param profile
58       */
59      public void addProfile( Profile profile )
60      {
61          getProfiles().add( profile );
62      } //-- void addProfile( Profile )
63  
64      /**
65       * Method getActiveProfiles.
66       * 
67       * @return List
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      } //-- java.util.List<String> getActiveProfiles()
78  
79      /**
80       * Get the modelEncoding field.
81       * 
82       * @return String
83       */
84      public String getModelEncoding()
85      {
86          return this.modelEncoding;
87      } //-- String getModelEncoding()
88  
89      /**
90       * Method getProfiles.
91       * 
92       * @return List
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     } //-- java.util.List<Profile> getProfiles()
103 
104     /**
105      * Method removeActiveProfile.
106      * 
107      * @param string
108      */
109     public void removeActiveProfile( String string )
110     {
111         getActiveProfiles().remove( string );
112     } //-- void removeActiveProfile( String )
113 
114     /**
115      * Method removeProfile.
116      * 
117      * @param profile
118      */
119     public void removeProfile( Profile profile )
120     {
121         getProfiles().remove( profile );
122     } //-- void removeProfile( Profile )
123 
124     /**
125      * Set list of manually-activated build profiles, specified in
126      * the order in which
127      *             they should be applied.
128      * 
129      * @param activeProfiles
130      */
131     public void setActiveProfiles( java.util.List<String> activeProfiles )
132     {
133         this.activeProfiles = activeProfiles;
134     } //-- void setActiveProfiles( java.util.List )
135 
136     /**
137      * Set the modelEncoding field.
138      * 
139      * @param modelEncoding
140      */
141     public void setModelEncoding( String modelEncoding )
142     {
143         this.modelEncoding = modelEncoding;
144     } //-- void setModelEncoding( String )
145 
146     /**
147      * Set configuration of build profiles for adjusting the build
148      *             according to environmental parameters.
149      * 
150      * @param profiles
151      */
152     public void setProfiles( java.util.List<Profile> profiles )
153     {
154         this.profiles = profiles;
155     } //-- void setProfiles( java.util.List )
156 
157 }