Coverage Report - org.apache.maven.plugin.pmd.model.Violation
 
Classes in this File Line Coverage Branch Coverage Complexity
Violation
100%
24/24
N/A
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 Violation.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  
 @SuppressWarnings( "all" )
 16  18
 public class Violation
 17  
     implements java.io.Serializable
 18  
 {
 19  
 
 20  
       //--------------------------/
 21  
      //- Class/Member Variables -/
 22  
     //--------------------------/
 23  
 
 24  
     /**
 25  
      * Field beginline.
 26  
      */
 27  18
     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  18
     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  6
         return this.beginline;
 67  
     } //-- int getBeginline()
 68  
 
 69  
     /**
 70  
      * Get the priority field.
 71  
      * 
 72  
      * @return int
 73  
      */
 74  
     public int getPriority()
 75  
     {
 76  24
         return this.priority;
 77  
     } //-- int getPriority()
 78  
 
 79  
     /**
 80  
      * Get the rule field.
 81  
      * 
 82  
      * @return String
 83  
      */
 84  
     public String getRule()
 85  
     {
 86  6
         return this.rule;
 87  
     } //-- String getRule()
 88  
 
 89  
     /**
 90  
      * Get the text field.
 91  
      * 
 92  
      * @return String
 93  
      */
 94  
     public String getText()
 95  
     {
 96  6
         return this.text;
 97  
     } //-- String getText()
 98  
 
 99  
     /**
 100  
      * Get the violationClass field.
 101  
      * 
 102  
      * @return String
 103  
      */
 104  
     public String getViolationClass()
 105  
     {
 106  11
         return this.violationClass;
 107  
     } //-- String getViolationClass()
 108  
 
 109  
     /**
 110  
      * Get the violationPackage field.
 111  
      * 
 112  
      * @return String
 113  
      */
 114  
     public String getViolationPackage()
 115  
     {
 116  28
         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  18
         this.beginline = beginline;
 127  18
     } //-- void setBeginline( int )
 128  
 
 129  
     /**
 130  
      * Set the priority field.
 131  
      * 
 132  
      * @param priority
 133  
      */
 134  
     public void setPriority( int priority )
 135  
     {
 136  18
         this.priority = priority;
 137  18
     } //-- void setPriority( int )
 138  
 
 139  
     /**
 140  
      * Set the rule field.
 141  
      * 
 142  
      * @param rule
 143  
      */
 144  
     public void setRule( String rule )
 145  
     {
 146  18
         this.rule = rule;
 147  18
     } //-- void setRule( String )
 148  
 
 149  
     /**
 150  
      * Set the text field.
 151  
      * 
 152  
      * @param text
 153  
      */
 154  
     public void setText( String text )
 155  
     {
 156  18
         this.text = text;
 157  18
     } //-- void setText( String )
 158  
 
 159  
     /**
 160  
      * Set the violationClass field.
 161  
      * 
 162  
      * @param violationClass
 163  
      */
 164  
     public void setViolationClass( String violationClass )
 165  
     {
 166  15
         this.violationClass = violationClass;
 167  15
     } //-- void setViolationClass( String )
 168  
 
 169  
     /**
 170  
      * Set the violationPackage field.
 171  
      * 
 172  
      * @param violationPackage
 173  
      */
 174  
     public void setViolationPackage( String violationPackage )
 175  
     {
 176  18
         this.violationPackage = violationPackage;
 177  18
     } //-- void setViolationPackage( String )
 178  
 
 179  
     
 180  
           
 181  
             private String fileName;
 182  
             
 183  
             public void setFileName( String fileName )
 184  
             {
 185  18
               this.fileName = fileName;
 186  18
             }
 187  
           
 188  
             public String getFileName()
 189  
             {
 190  1
               return fileName;
 191  
             }
 192  
           
 193  
           
 194  
 }