Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PmdFile |
|
| 1.1666666666666667;1,167 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.4.1 on 2012-02-12 12:12:26, | |
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$ $Date$ | |
14 | */ | |
15 | @SuppressWarnings( "all" ) | |
16 | 9 | 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 | 0 | getViolations().add( violation ); |
47 | 0 | } //-- void addViolation( Violation ) |
48 | ||
49 | /** | |
50 | * Get the name field. | |
51 | * | |
52 | * @return String | |
53 | */ | |
54 | public String getName() | |
55 | { | |
56 | 9 | 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 | 27 | if ( this.violations == null ) |
67 | { | |
68 | 9 | this.violations = new java.util.ArrayList<Violation>(); |
69 | } | |
70 | ||
71 | 27 | 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 | 0 | getViolations().remove( violation ); |
82 | 0 | } //-- void removeViolation( Violation ) |
83 | ||
84 | /** | |
85 | * Set the name field. | |
86 | * | |
87 | * @param name | |
88 | */ | |
89 | public void setName( String name ) | |
90 | { | |
91 | 9 | this.name = name; |
92 | 9 | } //-- 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 | 0 | this.violations = violations; |
102 | 0 | } //-- void setViolations( java.util.List ) |
103 | ||
104 | } |