1 // =================== DO NOT EDIT THIS FILE ====================
2 // Generated by Modello 1.8.1,
3 // any modifications will be overwritten.
4 // ==============================================================
5
6 package org.apache.maven.plugins.pmd.model;
7
8 /**
9 * Class Violation.
10 *
11 * @version $Revision$ $Date$
12 */
13 @SuppressWarnings( "all" )
14 public class Violation
15 implements java.io.Serializable
16 {
17
18 //--------------------------/
19 //- Class/Member Variables -/
20 //--------------------------/
21
22 /**
23 * Field beginline.
24 */
25 private int beginline = 0;
26
27 /**
28 * Field violationClass.
29 */
30 private String violationClass;
31
32 /**
33 * Field violationPackage.
34 */
35 private String violationPackage;
36
37 /**
38 * Field rule.
39 */
40 private String rule;
41
42 /**
43 * Field priority.
44 */
45 private int priority = 0;
46
47 /**
48 * Field text.
49 */
50 private String text;
51
52
53 //-----------/
54 //- Methods -/
55 //-----------/
56
57 /**
58 * Get the beginline field.
59 *
60 * @return int
61 */
62 public int getBeginline()
63 {
64 return this.beginline;
65 } //-- int getBeginline()
66
67 /**
68 * Get the priority field.
69 *
70 * @return int
71 */
72 public int getPriority()
73 {
74 return this.priority;
75 } //-- int getPriority()
76
77 /**
78 * Get the rule field.
79 *
80 * @return String
81 */
82 public String getRule()
83 {
84 return this.rule;
85 } //-- String getRule()
86
87 /**
88 * Get the text field.
89 *
90 * @return String
91 */
92 public String getText()
93 {
94 return this.text;
95 } //-- String getText()
96
97 /**
98 * Get the violationClass field.
99 *
100 * @return String
101 */
102 public String getViolationClass()
103 {
104 return this.violationClass;
105 } //-- String getViolationClass()
106
107 /**
108 * Get the violationPackage field.
109 *
110 * @return String
111 */
112 public String getViolationPackage()
113 {
114 return this.violationPackage;
115 } //-- String getViolationPackage()
116
117 /**
118 * Set the beginline field.
119 *
120 * @param beginline
121 */
122 public void setBeginline( int beginline )
123 {
124 this.beginline = beginline;
125 } //-- void setBeginline( int )
126
127 /**
128 * Set the priority field.
129 *
130 * @param priority
131 */
132 public void setPriority( int priority )
133 {
134 this.priority = priority;
135 } //-- void setPriority( int )
136
137 /**
138 * Set the rule field.
139 *
140 * @param rule
141 */
142 public void setRule( String rule )
143 {
144 this.rule = rule;
145 } //-- void setRule( String )
146
147 /**
148 * Set the text field.
149 *
150 * @param text
151 */
152 public void setText( String text )
153 {
154 this.text = text;
155 } //-- void setText( String )
156
157 /**
158 * Set the violationClass field.
159 *
160 * @param violationClass
161 */
162 public void setViolationClass( String violationClass )
163 {
164 this.violationClass = violationClass;
165 } //-- void setViolationClass( String )
166
167 /**
168 * Set the violationPackage field.
169 *
170 * @param violationPackage
171 */
172 public void setViolationPackage( String violationPackage )
173 {
174 this.violationPackage = violationPackage;
175 } //-- void setViolationPackage( String )
176
177
178
179 private String fileName;
180
181 public void setFileName( String fileName )
182 {
183 this.fileName = fileName;
184 }
185
186 public String getFileName()
187 {
188 return fileName;
189 }
190
191
192 }