View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-03-04 22:04:56,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.plugin.pmd.model;
9   
10  /**
11   * Class PmdFile.
12   * 
13   * @version $Revision: 853015 $ $Date: 2013-03-04 21:10:54 +0000 (Mon, 04 Mar 2013) $
14   */
15  @SuppressWarnings( "all" )
16  public class PmdFile
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * Field name.
26       */
27      private String name;
28  
29      /**
30       * Field violations.
31       */
32      private java.util.List<Violation> violations;
33  
34  
35        //-----------/
36       //- Methods -/
37      //-----------/
38  
39      /**
40       * Method addViolation.
41       * 
42       * @param violation
43       */
44      public void addViolation( Violation violation )
45      {
46          getViolations().add( violation );
47      } //-- void addViolation( Violation )
48  
49      /**
50       * Get the name field.
51       * 
52       * @return String
53       */
54      public String getName()
55      {
56          return this.name;
57      } //-- String getName()
58  
59      /**
60       * Method getViolations.
61       * 
62       * @return List
63       */
64      public java.util.List<Violation> getViolations()
65      {
66          if ( this.violations == null )
67          {
68              this.violations = new java.util.ArrayList<Violation>();
69          }
70  
71          return this.violations;
72      } //-- java.util.List<Violation> getViolations()
73  
74      /**
75       * Method removeViolation.
76       * 
77       * @param violation
78       */
79      public void removeViolation( Violation violation )
80      {
81          getViolations().remove( violation );
82      } //-- void removeViolation( Violation )
83  
84      /**
85       * Set the name field.
86       * 
87       * @param name
88       */
89      public void setName( String name )
90      {
91          this.name = name;
92      } //-- void setName( String )
93  
94      /**
95       * Set the violations field.
96       * 
97       * @param violations
98       */
99      public void setViolations( java.util.List<Violation> violations )
100     {
101         this.violations = violations;
102     } //-- void setViolations( java.util.List )
103 
104 }