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

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

/*
 =================== DO NOT EDIT THIS FILE ====================
 
 Generated by Modello 2.4.0,
 
 any modifications will be overwritten.
 
 ==============================================================
 */

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

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

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

    /**
     * Field name.
     */
    private String name;

    /**
     * Field violations.
     */
    private java.util.List violations;


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

    /**
     * Method addViolation.
     * 
     * @param violation a violation object.
     */
    public void addViolation( Violation violation )
    {
        getViolations().add( violation );
    } //-- void addViolation( Violation )

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

    /**
     * Method getViolations.
     * 
     * @return List
     */
    public java.util.List getViolations()
    {
        if ( this.violations == null )
        {
            this.violations = new java.util.ArrayList();
        }

        return this.violations;
    } //-- java.util.List getViolations()

    /**
     * Method removeViolation.
     * 
     * @param violation a violation object.
     */
    public void removeViolation( Violation violation )
    {
        getViolations().remove( violation );
    } //-- void removeViolation( Violation )

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

    /**
     * Set the violations field.
     * 
     * @param violations a violations object.
     */
    public void setViolations( java.util.List violations )
    {
        this.violations = violations;
    } //-- void setViolations( java.util.List )

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy