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 GoalReconciliation.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class GoalReconciliation
33      extends GoalId
34      implements java.io.Serializable
35  {
36  
37        //--------------------------/
38       //- Class/Member Variables -/
39      //--------------------------/
40  
41      /**
42       * Field reconciles.
43       */
44      private java.util.List<TrackedProperty> reconciles;
45  
46      /**
47       * Field logs.
48       */
49      private java.util.List<PropertyName> logs;
50  
51      /**
52       * Field nologs.
53       */
54      private java.util.List<PropertyName> nologs;
55  
56      /**
57       * Controls if all plugin properties to be logged (true is
58       * default). All the properties logged
59       *                         with respect to log/nolog children:
60       *                         * true: logged all if no blacklists
61       * (&lt;nolog/&gt;) and whitelists (&lt;log/&gt;) specified on
62       * plugin
63       *                         level
64       *                         * false: logged only tracked and
65       * included by whitelists (&lt;log/&gt;) on plugin level
66       *                     .
67       */
68      private boolean logAll = true;
69  
70  
71        //-----------/
72       //- Methods -/
73      //-----------/
74  
75      /**
76       * Method addLog.
77       * 
78       * @param propertyName a propertyName object.
79       */
80      public void addLog( PropertyName propertyName )
81      {
82          getLogs().add( propertyName );
83      } //-- void addLog( PropertyName )
84  
85      /**
86       * Method addNolog.
87       * 
88       * @param propertyName a propertyName object.
89       */
90      public void addNolog( PropertyName propertyName )
91      {
92          getNologs().add( propertyName );
93      } //-- void addNolog( PropertyName )
94  
95      /**
96       * Method addReconcile.
97       * 
98       * @param trackedProperty a trackedProperty object.
99       */
100     public void addReconcile( TrackedProperty trackedProperty )
101     {
102         getReconciles().add( trackedProperty );
103     } //-- void addReconcile( TrackedProperty )
104 
105     /**
106      * Method getLogs.
107      * 
108      * @return List
109      */
110     public java.util.List<PropertyName> getLogs()
111     {
112         if ( this.logs == null )
113         {
114             this.logs = new java.util.ArrayList<PropertyName>();
115         }
116 
117         return this.logs;
118     } //-- java.util.List<PropertyName> getLogs()
119 
120     /**
121      * Method getNologs.
122      * 
123      * @return List
124      */
125     public java.util.List<PropertyName> getNologs()
126     {
127         if ( this.nologs == null )
128         {
129             this.nologs = new java.util.ArrayList<PropertyName>();
130         }
131 
132         return this.nologs;
133     } //-- java.util.List<PropertyName> getNologs()
134 
135     /**
136      * Method getReconciles.
137      * 
138      * @return List
139      */
140     public java.util.List<TrackedProperty> getReconciles()
141     {
142         if ( this.reconciles == null )
143         {
144             this.reconciles = new java.util.ArrayList<TrackedProperty>();
145         }
146 
147         return this.reconciles;
148     } //-- java.util.List<TrackedProperty> getReconciles()
149 
150     /**
151      * Get controls if all plugin properties to be logged (true is
152      * default). All the properties logged
153      *                         with respect to log/nolog children:
154      *                         * true: logged all if no blacklists
155      * (&lt;nolog/&gt;) and whitelists (&lt;log/&gt;) specified on
156      * plugin
157      *                         level
158      *                         * false: logged only tracked and
159      * included by whitelists (&lt;log/&gt;) on plugin level.
160      * 
161      * @return boolean
162      */
163     public boolean isLogAll()
164     {
165         return this.logAll;
166     } //-- boolean isLogAll()
167 
168     /**
169      * Method removeLog.
170      * 
171      * @param propertyName a propertyName object.
172      */
173     public void removeLog( PropertyName propertyName )
174     {
175         getLogs().remove( propertyName );
176     } //-- void removeLog( PropertyName )
177 
178     /**
179      * Method removeNolog.
180      * 
181      * @param propertyName a propertyName object.
182      */
183     public void removeNolog( PropertyName propertyName )
184     {
185         getNologs().remove( propertyName );
186     } //-- void removeNolog( PropertyName )
187 
188     /**
189      * Method removeReconcile.
190      * 
191      * @param trackedProperty a trackedProperty object.
192      */
193     public void removeReconcile( TrackedProperty trackedProperty )
194     {
195         getReconciles().remove( trackedProperty );
196     } //-- void removeReconcile( TrackedProperty )
197 
198     /**
199      * Set controls if all plugin properties to be logged (true is
200      * default). All the properties logged
201      *                         with respect to log/nolog children:
202      *                         * true: logged all if no blacklists
203      * (&lt;nolog/&gt;) and whitelists (&lt;log/&gt;) specified on
204      * plugin
205      *                         level
206      *                         * false: logged only tracked and
207      * included by whitelists (&lt;log/&gt;) on plugin level.
208      * 
209      * @param logAll a logAll object.
210      */
211     public void setLogAll( boolean logAll )
212     {
213         this.logAll = logAll;
214     } //-- void setLogAll( boolean )
215 
216     /**
217      * Set specify property which should be logged to build
218      * metadata for exploration.
219      * 
220      * @param logs a logs object.
221      */
222     public void setLogs( java.util.List<PropertyName> logs )
223     {
224         this.logs = logs;
225     } //-- void setLogs( java.util.List )
226 
227     /**
228      * Set specify property which should not be logged.
229      * 
230      * @param nologs a nologs object.
231      */
232     public void setNologs( java.util.List<PropertyName> nologs )
233     {
234         this.nologs = nologs;
235     } //-- void setNologs( java.util.List )
236 
237     /**
238      * Set the reconciles field.
239      * 
240      * @param reconciles a reconciles object.
241      */
242     public void setReconciles( java.util.List<TrackedProperty> reconciles )
243     {
244         this.reconciles = reconciles;
245     } //-- void setReconciles( java.util.List )
246 
247 }