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