View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.9.1,
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 errors.
29       */
30      private java.util.List<ProcessingError> errors;
31  
32      /**
33       * Field modelEncoding.
34       */
35      private String modelEncoding = "UTF-8";
36  
37  
38        //-----------/
39       //- Methods -/
40      //-----------/
41  
42      /**
43       * Method addError.
44       * 
45       * @param processingError
46       */
47      public void addError( ProcessingError processingError )
48      {
49          getErrors().add( processingError );
50      } //-- void addError( ProcessingError )
51  
52      /**
53       * Method addFile.
54       * 
55       * @param pmdFile
56       */
57      public void addFile( PmdFile pmdFile )
58      {
59          getFiles().add( pmdFile );
60      } //-- void addFile( PmdFile )
61  
62      /**
63       * Method getErrors.
64       * 
65       * @return List
66       */
67      public java.util.List<ProcessingError> getErrors()
68      {
69          if ( this.errors == null )
70          {
71              this.errors = new java.util.ArrayList<ProcessingError>();
72          }
73  
74          return this.errors;
75      } //-- java.util.List<ProcessingError> getErrors()
76  
77      /**
78       * Method getFiles.
79       * 
80       * @return List
81       */
82      public java.util.List<PmdFile> getFiles()
83      {
84          if ( this.files == null )
85          {
86              this.files = new java.util.ArrayList<PmdFile>();
87          }
88  
89          return this.files;
90      } //-- java.util.List<PmdFile> getFiles()
91  
92      /**
93       * Get the modelEncoding field.
94       * 
95       * @return String
96       */
97      public String getModelEncoding()
98      {
99          return this.modelEncoding;
100     } //-- String getModelEncoding()
101 
102     /**
103      * Method removeError.
104      * 
105      * @param processingError
106      */
107     public void removeError( ProcessingError processingError )
108     {
109         getErrors().remove( processingError );
110     } //-- void removeError( ProcessingError )
111 
112     /**
113      * Method removeFile.
114      * 
115      * @param pmdFile
116      */
117     public void removeFile( PmdFile pmdFile )
118     {
119         getFiles().remove( pmdFile );
120     } //-- void removeFile( PmdFile )
121 
122     /**
123      * Set the errors field.
124      * 
125      * @param errors
126      */
127     public void setErrors( java.util.List<ProcessingError> errors )
128     {
129         this.errors = errors;
130     } //-- void setErrors( java.util.List )
131 
132     /**
133      * Set the files field.
134      * 
135      * @param files
136      */
137     public void setFiles( java.util.List<PmdFile> files )
138     {
139         this.files = files;
140     } //-- void setFiles( java.util.List )
141 
142     /**
143      * Set the modelEncoding field.
144      * 
145      * @param modelEncoding
146      */
147     public void setModelEncoding( String modelEncoding )
148     {
149         this.modelEncoding = modelEncoding;
150     } //-- void setModelEncoding( String )
151 
152 }