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 * Configuration for source code input files participating in
28 * checksum calculation.
29 *
30 * @version $Revision$ $Date$
31 */
32 @SuppressWarnings( "all" )
33 public class Input
34 implements java.io.Serializable
35 {
36
37 //--------------------------/
38 //- Class/Member Variables -/
39 //--------------------------/
40
41 /**
42 * Global input calculation rules applicable to all projects
43 * and plugins in the build.
44 */
45 private PathSet global;
46
47 /**
48 * Field plugins.
49 */
50 private java.util.List<PluginConfigurationScan> plugins;
51
52
53 //-----------/
54 //- Methods -/
55 //-----------/
56
57 /**
58 * Method addPlugin.
59 *
60 * @param pluginConfigurationScan a pluginConfigurationScan
61 * object.
62 */
63 public void addPlugin( PluginConfigurationScan pluginConfigurationScan )
64 {
65 getPlugins().add( pluginConfigurationScan );
66 } //-- void addPlugin( PluginConfigurationScan )
67
68 /**
69 * Get global input calculation rules applicable to all
70 * projects and plugins in the build.
71 *
72 * @return PathSet
73 */
74 public PathSet getGlobal()
75 {
76 return this.global;
77 } //-- PathSet getGlobal()
78
79 /**
80 * Method getPlugins.
81 *
82 * @return List
83 */
84 public java.util.List<PluginConfigurationScan> getPlugins()
85 {
86 if ( this.plugins == null )
87 {
88 this.plugins = new java.util.ArrayList<PluginConfigurationScan>();
89 }
90
91 return this.plugins;
92 } //-- java.util.List<PluginConfigurationScan> getPlugins()
93
94 /**
95 * Method removePlugin.
96 *
97 * @param pluginConfigurationScan a pluginConfigurationScan
98 * object.
99 */
100 public void removePlugin( PluginConfigurationScan pluginConfigurationScan )
101 {
102 getPlugins().remove( pluginConfigurationScan );
103 } //-- void removePlugin( PluginConfigurationScan )
104
105 /**
106 * Set global input calculation rules applicable to all
107 * projects and plugins in the build.
108 *
109 * @param global a global object.
110 */
111 public void setGlobal( PathSet global )
112 {
113 this.global = global;
114 } //-- void setGlobal( PathSet )
115
116 /**
117 * Set plugin specific input calculation rules.
118 *
119 * @param plugins a plugins object.
120 */
121 public void setPlugins( java.util.List<PluginConfigurationScan> plugins )
122 {
123 this.plugins = plugins;
124 } //-- void setPlugins( java.util.List )
125
126 }