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 * <p>A file or a directory path to add to checksum computation.
28 * Relative paths are relative to each module basedir.</p>
29 * <p>Include elements can also be added per project
30 * with the use of <a
31 * href="parameters.html#project-level-properties">maven
32 * properties.</a></p>
33 *
34 *
35 * @version $Revision$ $Date$
36 */
37 @SuppressWarnings( "all" )
38 public class Include
39 implements java.io.Serializable
40 {
41
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
45
46 /**
47 * Path to add to the checksum computation.
48 */
49 private String value;
50
51 /**
52 * Will search in sub-folders if set to true.
53 */
54 private boolean recursive = true;
55
56 /**
57 * Files in a directory are filtered by matching their names
58 * against this glob.
59 */
60 private String glob;
61
62
63 //-----------/
64 //- Methods -/
65 //-----------/
66
67 /**
68 * Get files in a directory are filtered by matching their
69 * names against this glob.
70 *
71 * @return String
72 */
73 public String getGlob()
74 {
75 return this.glob;
76 } //-- String getGlob()
77
78 /**
79 * Get path to add to the checksum computation.
80 *
81 * @return String
82 */
83 public String getValue()
84 {
85 return this.value;
86 } //-- String getValue()
87
88 /**
89 * Get will search in sub-folders if set to true.
90 *
91 * @return boolean
92 */
93 public boolean isRecursive()
94 {
95 return this.recursive;
96 } //-- boolean isRecursive()
97
98 /**
99 * Set files in a directory are filtered by matching their
100 * names against this glob.
101 *
102 * @param glob a glob object.
103 */
104 public void setGlob( String glob )
105 {
106 this.glob = glob;
107 } //-- void setGlob( String )
108
109 /**
110 * Set will search in sub-folders if set to true.
111 *
112 * @param recursive a recursive object.
113 */
114 public void setRecursive( boolean recursive )
115 {
116 this.recursive = recursive;
117 } //-- void setRecursive( boolean )
118
119 /**
120 * Set path to add to the checksum computation.
121 *
122 * @param value a value object.
123 */
124 public void setValue( String value )
125 {
126 this.value = value;
127 } //-- void setValue( String )
128
129 }