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.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.buildcache.xml.config;
25  
26  /**
27   * Class Reconcile.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class Reconcile
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Field plugins.
42       */
43      private java.util.List<GoalReconciliation> plugins;
44  
45      /**
46       * 
47       *                         Controls if all plugin properties to
48       * be logged (true is default). All the properties
49       *                         logged with respect to children:
50       *                         * logAll on plugin level overrides
51       * global value
52       *                         * true: logged all if no blacklists
53       * (&lt;nolog/&gt;) and whitelists (&lt;log/&gt;) specified on
54       *                         plugin level
55       *                         * false: logged only tracked and
56       * included by whitelists (&lt;log/&gt;) on plugin level
57       *                         &lt;log/&gt;
58       *                     .
59       */
60      private boolean logAllProperties = true;
61  
62  
63        //-----------/
64       //- Methods -/
65      //-----------/
66  
67      /**
68       * Method addPlugin.
69       * 
70       * @param goalReconciliation a goalReconciliation object.
71       */
72      public void addPlugin( GoalReconciliation goalReconciliation )
73      {
74          getPlugins().add( goalReconciliation );
75      } //-- void addPlugin( GoalReconciliation )
76  
77      /**
78       * Method getPlugins.
79       * 
80       * @return List
81       */
82      public java.util.List<GoalReconciliation> getPlugins()
83      {
84          if ( this.plugins == null )
85          {
86              this.plugins = new java.util.ArrayList<GoalReconciliation>();
87          }
88  
89          return this.plugins;
90      } //-- java.util.List<GoalReconciliation> getPlugins()
91  
92      /**
93       * Get controls if all plugin properties to be logged (true is
94       * default). All the properties
95       *                         logged with respect to children:
96       *                         * logAll on plugin level overrides
97       * global value
98       *                         * true: logged all if no blacklists
99       * (&lt;nolog/&gt;) and whitelists (&lt;log/&gt;) specified on
100      *                         plugin level
101      *                         * false: logged only tracked and
102      * included by whitelists (&lt;log/&gt;) on plugin level
103      *                         &lt;log/&gt;.
104      * 
105      * @return boolean
106      */
107     public boolean isLogAllProperties()
108     {
109         return this.logAllProperties;
110     } //-- boolean isLogAllProperties()
111 
112     /**
113      * Method removePlugin.
114      * 
115      * @param goalReconciliation a goalReconciliation object.
116      */
117     public void removePlugin( GoalReconciliation goalReconciliation )
118     {
119         getPlugins().remove( goalReconciliation );
120     } //-- void removePlugin( GoalReconciliation )
121 
122     /**
123      * Set controls if all plugin properties to be logged (true is
124      * default). All the properties
125      *                         logged with respect to children:
126      *                         * logAll on plugin level overrides
127      * global value
128      *                         * true: logged all if no blacklists
129      * (&lt;nolog/&gt;) and whitelists (&lt;log/&gt;) specified on
130      *                         plugin level
131      *                         * false: logged only tracked and
132      * included by whitelists (&lt;log/&gt;) on plugin level
133      *                         &lt;log/&gt;.
134      * 
135      * @param logAllProperties a logAllProperties object.
136      */
137     public void setLogAllProperties( boolean logAllProperties )
138     {
139         this.logAllProperties = logAllProperties;
140     } //-- void setLogAllProperties( boolean )
141 
142     /**
143      * Set reconciliation rules for plugin properties which might
144      * be affected by command line flags, etc.
145      * 
146      * @param plugins a plugins object.
147      */
148     public void setPlugins( java.util.List<GoalReconciliation> plugins )
149     {
150         this.plugins = plugins;
151     } //-- void setPlugins( java.util.List )
152 
153 }