Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CpdErrorDetail |
|
| 1.1666666666666667;1,167 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.4.1 on 2012-02-01 22:15:30, | |
4 | any modifications will be overwritten. | |
5 | ============================================================== | |
6 | */ | |
7 | ||
8 | package org.apache.maven.plugin.pmd.model; | |
9 | ||
10 | /** | |
11 | * Class CpdErrorDetail. | |
12 | * | |
13 | * @version $Revision$ $Date$ | |
14 | */ | |
15 | @SuppressWarnings( "all" ) | |
16 | 2 | public class CpdErrorDetail |
17 | implements java.io.Serializable | |
18 | { | |
19 | ||
20 | //--------------------------/ | |
21 | //- Class/Member Variables -/ | |
22 | //--------------------------/ | |
23 | ||
24 | /** | |
25 | * Field duplications. | |
26 | */ | |
27 | private java.util.List<Duplication> duplications; | |
28 | ||
29 | /** | |
30 | * Field modelEncoding. | |
31 | */ | |
32 | 2 | private String modelEncoding = "UTF-8"; |
33 | ||
34 | ||
35 | //-----------/ | |
36 | //- Methods -/ | |
37 | //-----------/ | |
38 | ||
39 | /** | |
40 | * Method addDuplication. | |
41 | * | |
42 | * @param duplication | |
43 | */ | |
44 | public void addDuplication( Duplication duplication ) | |
45 | { | |
46 | 0 | getDuplications().add( duplication ); |
47 | 0 | } //-- void addDuplication( Duplication ) |
48 | ||
49 | /** | |
50 | * Method getDuplications. | |
51 | * | |
52 | * @return List | |
53 | */ | |
54 | public java.util.List<Duplication> getDuplications() | |
55 | { | |
56 | 4 | if ( this.duplications == null ) |
57 | { | |
58 | 2 | this.duplications = new java.util.ArrayList<Duplication>(); |
59 | } | |
60 | ||
61 | 4 | return this.duplications; |
62 | } //-- java.util.List<Duplication> getDuplications() | |
63 | ||
64 | /** | |
65 | * Get the modelEncoding field. | |
66 | * | |
67 | * @return String | |
68 | */ | |
69 | public String getModelEncoding() | |
70 | { | |
71 | 0 | return this.modelEncoding; |
72 | } //-- String getModelEncoding() | |
73 | ||
74 | /** | |
75 | * Method removeDuplication. | |
76 | * | |
77 | * @param duplication | |
78 | */ | |
79 | public void removeDuplication( Duplication duplication ) | |
80 | { | |
81 | 0 | getDuplications().remove( duplication ); |
82 | 0 | } //-- void removeDuplication( Duplication ) |
83 | ||
84 | /** | |
85 | * Set the duplications field. | |
86 | * | |
87 | * @param duplications | |
88 | */ | |
89 | public void setDuplications( java.util.List<Duplication> duplications ) | |
90 | { | |
91 | 0 | this.duplications = duplications; |
92 | 0 | } //-- void setDuplications( java.util.List ) |
93 | ||
94 | /** | |
95 | * Set the modelEncoding field. | |
96 | * | |
97 | * @param modelEncoding | |
98 | */ | |
99 | public void setModelEncoding( String modelEncoding ) | |
100 | { | |
101 | 2 | this.modelEncoding = modelEncoding; |
102 | 2 | } //-- void setModelEncoding( String ) |
103 | ||
104 | } |