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.plugins.pmd.model; 25 26 /** 27 * Class PmdErrorDetail. 28 * 29 * @version $Revision$ $Date$ 30 */ 31 @SuppressWarnings( "all" ) 32 public class PmdErrorDetail 33 implements java.io.Serializable 34 { 35 36 //--------------------------/ 37 //- Class/Member Variables -/ 38 //--------------------------/ 39 40 /** 41 * Field files. 42 */ 43 private java.util.List<PmdFile> files; 44 45 /** 46 * Field suppressedViolations. 47 */ 48 private java.util.List<SuppressedViolation> suppressedViolations; 49 50 /** 51 * Field errors. 52 */ 53 private java.util.List<ProcessingError> errors; 54 55 /** 56 * Field modelEncoding. 57 */ 58 private String modelEncoding = "UTF-8"; 59 60 61 //-----------/ 62 //- Methods -/ 63 //-----------/ 64 65 /** 66 * Method addError. 67 * 68 * @param processingError a processingError object. 69 */ 70 public void addError( ProcessingError processingError ) 71 { 72 getErrors().add( processingError ); 73 } //-- void addError( ProcessingError ) 74 75 /** 76 * Method addFile. 77 * 78 * @param pmdFile a pmdFile object. 79 */ 80 public void addFile( PmdFile pmdFile ) 81 { 82 getFiles().add( pmdFile ); 83 } //-- void addFile( PmdFile ) 84 85 /** 86 * Method addSuppressedViolation. 87 * 88 * @param suppressedViolation a suppressedViolation object. 89 */ 90 public void addSuppressedViolation( SuppressedViolation suppressedViolation ) 91 { 92 getSuppressedViolations().add( suppressedViolation ); 93 } //-- void addSuppressedViolation( SuppressedViolation ) 94 95 /** 96 * Method getErrors. 97 * 98 * @return List 99 */ 100 public java.util.List<ProcessingError> getErrors() 101 { 102 if ( this.errors == null ) 103 { 104 this.errors = new java.util.ArrayList<ProcessingError>(); 105 } 106 107 return this.errors; 108 } //-- java.util.List<ProcessingError> getErrors() 109 110 /** 111 * Method getFiles. 112 * 113 * @return List 114 */ 115 public java.util.List<PmdFile> getFiles() 116 { 117 if ( this.files == null ) 118 { 119 this.files = new java.util.ArrayList<PmdFile>(); 120 } 121 122 return this.files; 123 } //-- java.util.List<PmdFile> getFiles() 124 125 /** 126 * Get the modelEncoding field. 127 * 128 * @return String 129 */ 130 public String getModelEncoding() 131 { 132 return this.modelEncoding; 133 } //-- String getModelEncoding() 134 135 /** 136 * Method getSuppressedViolations. 137 * 138 * @return List 139 */ 140 public java.util.List<SuppressedViolation> getSuppressedViolations() 141 { 142 if ( this.suppressedViolations == null ) 143 { 144 this.suppressedViolations = new java.util.ArrayList<SuppressedViolation>(); 145 } 146 147 return this.suppressedViolations; 148 } //-- java.util.List<SuppressedViolation> getSuppressedViolations() 149 150 /** 151 * Method removeError. 152 * 153 * @param processingError a processingError object. 154 */ 155 public void removeError( ProcessingError processingError ) 156 { 157 getErrors().remove( processingError ); 158 } //-- void removeError( ProcessingError ) 159 160 /** 161 * Method removeFile. 162 * 163 * @param pmdFile a pmdFile object. 164 */ 165 public void removeFile( PmdFile pmdFile ) 166 { 167 getFiles().remove( pmdFile ); 168 } //-- void removeFile( PmdFile ) 169 170 /** 171 * Method removeSuppressedViolation. 172 * 173 * @param suppressedViolation a suppressedViolation object. 174 */ 175 public void removeSuppressedViolation( SuppressedViolation suppressedViolation ) 176 { 177 getSuppressedViolations().remove( suppressedViolation ); 178 } //-- void removeSuppressedViolation( SuppressedViolation ) 179 180 /** 181 * Set the errors field. 182 * 183 * @param errors a errors object. 184 */ 185 public void setErrors( java.util.List<ProcessingError> errors ) 186 { 187 this.errors = errors; 188 } //-- void setErrors( java.util.List ) 189 190 /** 191 * Set the files field. 192 * 193 * @param files a files object. 194 */ 195 public void setFiles( java.util.List<PmdFile> files ) 196 { 197 this.files = files; 198 } //-- void setFiles( java.util.List ) 199 200 /** 201 * Set the modelEncoding field. 202 * 203 * @param modelEncoding a modelEncoding object. 204 */ 205 public void setModelEncoding( String modelEncoding ) 206 { 207 this.modelEncoding = modelEncoding; 208 } //-- void setModelEncoding( String ) 209 210 /** 211 * Set the suppressedViolations field. 212 * 213 * @param suppressedViolations a suppressedViolations object. 214 */ 215 public void setSuppressedViolations( java.util.List<SuppressedViolation> suppressedViolations ) 216 { 217 this.suppressedViolations = suppressedViolations; 218 } //-- void setSuppressedViolations( java.util.List ) 219 220 }