1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 2.1.2, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.maven.buildcache.xml.config; 7 8 /** 9 * Global input calculation rules applicable to all projects and 10 * plugins in the build. 11 * 12 * @version $Revision$ $Date$ 13 */ 14 @SuppressWarnings( "all" ) 15 public class PathSet 16 implements java.io.Serializable 17 { 18 19 //--------------------------/ 20 //- Class/Member Variables -/ 21 //--------------------------/ 22 23 /** 24 * Type of files to globally scan. All types are scanned by 25 * default. Example to scan only java and xml files : 26 * <code>{*.java,*.xml}</code> 27 * 28 */ 29 private String glob = "*"; 30 31 /** 32 * Field includes. 33 */ 34 private java.util.List<Include> includes; 35 36 /** 37 * Field excludes. 38 */ 39 private java.util.List<Exclude> excludes; 40 41 42 //-----------/ 43 //- Methods -/ 44 //-----------/ 45 46 /** 47 * Method addExclude. 48 * 49 * @param exclude a exclude object. 50 */ 51 public void addExclude( Exclude exclude ) 52 { 53 getExcludes().add( exclude ); 54 } //-- void addExclude( Exclude ) 55 56 /** 57 * Method addInclude. 58 * 59 * @param include a include object. 60 */ 61 public void addInclude( Include include ) 62 { 63 getIncludes().add( include ); 64 } //-- void addInclude( Include ) 65 66 /** 67 * Method getExcludes. 68 * 69 * @return List 70 */ 71 public java.util.List<Exclude> getExcludes() 72 { 73 if ( this.excludes == null ) 74 { 75 this.excludes = new java.util.ArrayList<Exclude>(); 76 } 77 78 return this.excludes; 79 } //-- java.util.List<Exclude> getExcludes() 80 81 /** 82 * Get type of files to globally scan. All types are scanned by 83 * default. Example to scan only java and xml files : 84 * <code>{*.java,*.xml}</code> 85 * 86 * @return String 87 */ 88 public String getGlob() 89 { 90 return this.glob; 91 } //-- String getGlob() 92 93 /** 94 * Method getIncludes. 95 * 96 * @return List 97 */ 98 public java.util.List<Include> getIncludes() 99 { 100 if ( this.includes == null ) 101 { 102 this.includes = new java.util.ArrayList<Include>(); 103 } 104 105 return this.includes; 106 } //-- java.util.List<Include> getIncludes() 107 108 /** 109 * Method removeExclude. 110 * 111 * @param exclude a exclude object. 112 */ 113 public void removeExclude( Exclude exclude ) 114 { 115 getExcludes().remove( exclude ); 116 } //-- void removeExclude( Exclude ) 117 118 /** 119 * Method removeInclude. 120 * 121 * @param include a include object. 122 */ 123 public void removeInclude( Include include ) 124 { 125 getIncludes().remove( include ); 126 } //-- void removeInclude( Include ) 127 128 /** 129 * Set paths and files to exclude from checksum computation. 130 * 131 * @param excludes a excludes object. 132 */ 133 public void setExcludes( java.util.List<Exclude> excludes ) 134 { 135 this.excludes = excludes; 136 } //-- void setExcludes( java.util.List ) 137 138 /** 139 * Set type of files to globally scan. All types are scanned by 140 * default. Example to scan only java and xml files : 141 * <code>{*.java,*.xml}</code> 142 * 143 * @param glob a glob object. 144 */ 145 public void setGlob( String glob ) 146 { 147 this.glob = glob; 148 } //-- void setGlob( String ) 149 150 /** 151 * Set extra paths to scan in order to compute the checksum 152 * (Project and test - sources/resources are already in the 153 * scan list). 154 * 155 * @param includes a includes object. 156 */ 157 public void setIncludes( java.util.List<Include> includes ) 158 { 159 this.includes = includes; 160 } //-- void setIncludes( java.util.List ) 161 162 }