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