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 * Global input calculation rules applicable to all projects and 28 * plugins in the build. 29 * 30 * @version $Revision$ $Date$ 31 */ 32 @SuppressWarnings( "all" ) 33 public class PathSet 34 implements java.io.Serializable 35 { 36 37 //--------------------------/ 38 //- Class/Member Variables -/ 39 //--------------------------/ 40 41 /** 42 * Type of files to globally scan. All types are scanned by 43 * default. Example to scan only java and xml files : 44 * <code>{*.java,*.xml}</code> 45 * 46 */ 47 private String glob = "*"; 48 49 /** 50 * Field includes. 51 */ 52 private java.util.List<Include> includes; 53 54 /** 55 * Field excludes. 56 */ 57 private java.util.List<Exclude> excludes; 58 59 60 //-----------/ 61 //- Methods -/ 62 //-----------/ 63 64 /** 65 * Method addExclude. 66 * 67 * @param exclude a exclude object. 68 */ 69 public void addExclude( Exclude exclude ) 70 { 71 getExcludes().add( exclude ); 72 } //-- void addExclude( Exclude ) 73 74 /** 75 * Method addInclude. 76 * 77 * @param include a include object. 78 */ 79 public void addInclude( Include include ) 80 { 81 getIncludes().add( include ); 82 } //-- void addInclude( Include ) 83 84 /** 85 * Method getExcludes. 86 * 87 * @return List 88 */ 89 public java.util.List<Exclude> getExcludes() 90 { 91 if ( this.excludes == null ) 92 { 93 this.excludes = new java.util.ArrayList<Exclude>(); 94 } 95 96 return this.excludes; 97 } //-- java.util.List<Exclude> getExcludes() 98 99 /** 100 * Get type of files to globally scan. All types are scanned by 101 * default. Example to scan only java and xml files : 102 * <code>{*.java,*.xml}</code> 103 * 104 * @return String 105 */ 106 public String getGlob() 107 { 108 return this.glob; 109 } //-- String getGlob() 110 111 /** 112 * Method getIncludes. 113 * 114 * @return List 115 */ 116 public java.util.List<Include> getIncludes() 117 { 118 if ( this.includes == null ) 119 { 120 this.includes = new java.util.ArrayList<Include>(); 121 } 122 123 return this.includes; 124 } //-- java.util.List<Include> getIncludes() 125 126 /** 127 * Method removeExclude. 128 * 129 * @param exclude a exclude object. 130 */ 131 public void removeExclude( Exclude exclude ) 132 { 133 getExcludes().remove( exclude ); 134 } //-- void removeExclude( Exclude ) 135 136 /** 137 * Method removeInclude. 138 * 139 * @param include a include object. 140 */ 141 public void removeInclude( Include include ) 142 { 143 getIncludes().remove( include ); 144 } //-- void removeInclude( Include ) 145 146 /** 147 * Set paths and files to exclude from checksum computation. 148 * 149 * @param excludes a excludes object. 150 */ 151 public void setExcludes( java.util.List<Exclude> excludes ) 152 { 153 this.excludes = excludes; 154 } //-- void setExcludes( java.util.List ) 155 156 /** 157 * Set type of files to globally scan. All types are scanned by 158 * default. Example to scan only java and xml files : 159 * <code>{*.java,*.xml}</code> 160 * 161 * @param glob a glob object. 162 */ 163 public void setGlob( String glob ) 164 { 165 this.glob = glob; 166 } //-- void setGlob( String ) 167 168 /** 169 * Set extra paths to scan in order to compute the checksum 170 * (Project and test - sources/resources are already in the 171 * scan list). 172 * 173 * @param includes a includes object. 174 */ 175 public void setIncludes( java.util.List<Include> includes ) 176 { 177 this.includes = includes; 178 } //-- void setIncludes( java.util.List ) 179 180 }