1
2
3
4
5
6 package org.apache.maven.plugins.pmd.model;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class CpdErrorDetail
15 implements java.io.Serializable
16 {
17
18
19
20
21
22
23
24
25 private java.util.List<Duplication> duplications;
26
27
28
29
30 private String modelEncoding = "UTF-8";
31
32
33
34
35
36
37
38
39
40
41
42 public void addDuplication( Duplication duplication )
43 {
44 getDuplications().add( duplication );
45 }
46
47
48
49
50
51
52 public java.util.List<Duplication> getDuplications()
53 {
54 if ( this.duplications == null )
55 {
56 this.duplications = new java.util.ArrayList<Duplication>();
57 }
58
59 return this.duplications;
60 }
61
62
63
64
65
66
67 public String getModelEncoding()
68 {
69 return this.modelEncoding;
70 }
71
72
73
74
75
76
77 public void removeDuplication( Duplication duplication )
78 {
79 getDuplications().remove( duplication );
80 }
81
82
83
84
85
86
87 public void setDuplications( java.util.List<Duplication> duplications )
88 {
89 this.duplications = duplications;
90 }
91
92
93
94
95
96
97 public void setModelEncoding( String modelEncoding )
98 {
99 this.modelEncoding = modelEncoding;
100 }
101
102 }