View Javadoc

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