All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.plugins.pmd.model.Violation Maven / Gradle / Ivy

Go to download

A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics.

There is a newer version: 3.9.0
Show newest version
/*
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at
 
     http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 =================== DO NOT EDIT THIS FILE ====================
 Generated by Modello 2.5.1,
 any modifications will be overwritten.
 ==============================================================
 */

package org.apache.maven.plugins.pmd.model;

/**
 * Class Violation.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class Violation
    implements java.io.Serializable
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field beginline.
     */
    private int beginline = 0;

    /**
     * Field endline.
     */
    private int endline = 0;

    /**
     * Field violationClass.
     */
    private String violationClass;

    /**
     * Field violationPackage.
     */
    private String violationPackage;

    /**
     * Field rule.
     */
    private String rule;

    /**
     * Field priority.
     */
    private int priority = 0;

    /**
     * Field externalInfoUrl.
     */
    private String externalInfoUrl;

    /**
     * Field text.
     */
    private String text;


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Get the beginline field.
     * 
     * @return int
     */
    public int getBeginline()
    {
        return this.beginline;
    } //-- int getBeginline()

    /**
     * Get the endline field.
     * 
     * @return int
     */
    public int getEndline()
    {
        return this.endline;
    } //-- int getEndline()

    /**
     * Get the externalInfoUrl field.
     * 
     * @return String
     */
    public String getExternalInfoUrl()
    {
        return this.externalInfoUrl;
    } //-- String getExternalInfoUrl()

    /**
     * Get the priority field.
     * 
     * @return int
     */
    public int getPriority()
    {
        return this.priority;
    } //-- int getPriority()

    /**
     * Get the rule field.
     * 
     * @return String
     */
    public String getRule()
    {
        return this.rule;
    } //-- String getRule()

    /**
     * Get the text field.
     * 
     * @return String
     */
    public String getText()
    {
        return this.text;
    } //-- String getText()

    /**
     * Get the violationClass field.
     * 
     * @return String
     */
    public String getViolationClass()
    {
        return this.violationClass;
    } //-- String getViolationClass()

    /**
     * Get the violationPackage field.
     * 
     * @return String
     */
    public String getViolationPackage()
    {
        return this.violationPackage;
    } //-- String getViolationPackage()

    /**
     * Set the beginline field.
     * 
     * @param beginline a beginline object.
     */
    public void setBeginline( int beginline )
    {
        this.beginline = beginline;
    } //-- void setBeginline( int )

    /**
     * Set the endline field.
     * 
     * @param endline a endline object.
     */
    public void setEndline( int endline )
    {
        this.endline = endline;
    } //-- void setEndline( int )

    /**
     * Set the externalInfoUrl field.
     * 
     * @param externalInfoUrl a externalInfoUrl object.
     */
    public void setExternalInfoUrl( String externalInfoUrl )
    {
        this.externalInfoUrl = externalInfoUrl;
    } //-- void setExternalInfoUrl( String )

    /**
     * Set the priority field.
     * 
     * @param priority a priority object.
     */
    public void setPriority( int priority )
    {
        this.priority = priority;
    } //-- void setPriority( int )

    /**
     * Set the rule field.
     * 
     * @param rule a rule object.
     */
    public void setRule( String rule )
    {
        this.rule = rule;
    } //-- void setRule( String )

    /**
     * Set the text field.
     * 
     * @param text a text object.
     */
    public void setText( String text )
    {
        this.text = text;
    } //-- void setText( String )

    /**
     * Set the violationClass field.
     * 
     * @param violationClass a violationClass object.
     */
    public void setViolationClass( String violationClass )
    {
        this.violationClass = violationClass;
    } //-- void setViolationClass( String )

    /**
     * Set the violationPackage field.
     * 
     * @param violationPackage a violationPackage object.
     */
    public void setViolationPackage( String violationPackage )
    {
        this.violationPackage = violationPackage;
    } //-- void setViolationPackage( String )

    
          
            private String fileName;
            
            public void setFileName( String fileName )
            {
              this.fileName = fileName;
            }
          
            public String getFileName()
            {
              return fileName;
            }
          
          
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy