Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Duplication |
|
| 1.1;1,1 |
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 Duplication. | |
12 | * | |
13 | * @version $Revision: 816698 $ $Date: 2012-05-08 15:21:08 +0000 (Tue, 08 May 2012) $ | |
14 | */ | |
15 | @SuppressWarnings( "all" ) | |
16 | 1 | public class Duplication |
17 | implements java.io.Serializable | |
18 | { | |
19 | ||
20 | //--------------------------/ | |
21 | //- Class/Member Variables -/ | |
22 | //--------------------------/ | |
23 | ||
24 | /** | |
25 | * Field lines. | |
26 | */ | |
27 | 1 | private int lines = 0; |
28 | ||
29 | /** | |
30 | * Field tokens. | |
31 | */ | |
32 | 1 | private int tokens = 0; |
33 | ||
34 | /** | |
35 | * Field files. | |
36 | */ | |
37 | private java.util.List<CpdFile> files; | |
38 | ||
39 | /** | |
40 | * Field codefragment. | |
41 | */ | |
42 | private String codefragment; | |
43 | ||
44 | ||
45 | //-----------/ | |
46 | //- Methods -/ | |
47 | //-----------/ | |
48 | ||
49 | /** | |
50 | * Method addFile. | |
51 | * | |
52 | * @param cpdFile | |
53 | */ | |
54 | public void addFile( CpdFile cpdFile ) | |
55 | { | |
56 | 0 | getFiles().add( cpdFile ); |
57 | 0 | } //-- void addFile( CpdFile ) |
58 | ||
59 | /** | |
60 | * Get the codefragment field. | |
61 | * | |
62 | * @return String | |
63 | */ | |
64 | public String getCodefragment() | |
65 | { | |
66 | 0 | return this.codefragment; |
67 | } //-- String getCodefragment() | |
68 | ||
69 | /** | |
70 | * Method getFiles. | |
71 | * | |
72 | * @return List | |
73 | */ | |
74 | public java.util.List<CpdFile> getFiles() | |
75 | { | |
76 | 2 | if ( this.files == null ) |
77 | { | |
78 | 1 | this.files = new java.util.ArrayList<CpdFile>(); |
79 | } | |
80 | ||
81 | 2 | return this.files; |
82 | } //-- java.util.List<CpdFile> getFiles() | |
83 | ||
84 | /** | |
85 | * Get the lines field. | |
86 | * | |
87 | * @return int | |
88 | */ | |
89 | public int getLines() | |
90 | { | |
91 | 0 | return this.lines; |
92 | } //-- int getLines() | |
93 | ||
94 | /** | |
95 | * Get the tokens field. | |
96 | * | |
97 | * @return int | |
98 | */ | |
99 | public int getTokens() | |
100 | { | |
101 | 0 | return this.tokens; |
102 | } //-- int getTokens() | |
103 | ||
104 | /** | |
105 | * Method removeFile. | |
106 | * | |
107 | * @param cpdFile | |
108 | */ | |
109 | public void removeFile( CpdFile cpdFile ) | |
110 | { | |
111 | 0 | getFiles().remove( cpdFile ); |
112 | 0 | } //-- void removeFile( CpdFile ) |
113 | ||
114 | /** | |
115 | * Set the codefragment field. | |
116 | * | |
117 | * @param codefragment | |
118 | */ | |
119 | public void setCodefragment( String codefragment ) | |
120 | { | |
121 | 1 | this.codefragment = codefragment; |
122 | 1 | } //-- void setCodefragment( String ) |
123 | ||
124 | /** | |
125 | * Set the files field. | |
126 | * | |
127 | * @param files | |
128 | */ | |
129 | public void setFiles( java.util.List<CpdFile> files ) | |
130 | { | |
131 | 0 | this.files = files; |
132 | 0 | } //-- void setFiles( java.util.List ) |
133 | ||
134 | /** | |
135 | * Set the lines field. | |
136 | * | |
137 | * @param lines | |
138 | */ | |
139 | public void setLines( int lines ) | |
140 | { | |
141 | 1 | this.lines = lines; |
142 | 1 | } //-- void setLines( int ) |
143 | ||
144 | /** | |
145 | * Set the tokens field. | |
146 | * | |
147 | * @param tokens | |
148 | */ | |
149 | public void setTokens( int tokens ) | |
150 | { | |
151 | 1 | this.tokens = tokens; |
152 | 1 | } //-- void setTokens( int ) |
153 | ||
154 | } |