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

org.apache.maven.plugins.pmd.model.Duplication 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 Duplication.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class Duplication
    implements java.io.Serializable
{

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

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

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

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

    /**
     * Field codefragment.
     */
    private String codefragment;


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

    /**
     * Method addFile.
     * 
     * @param cpdFile a cpdFile object.
     */
    public void addFile( CpdFile cpdFile )
    {
        getFiles().add( cpdFile );
    } //-- void addFile( CpdFile )

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

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

        return this.files;
    } //-- java.util.List getFiles()

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

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

    /**
     * Method removeFile.
     * 
     * @param cpdFile a cpdFile object.
     */
    public void removeFile( CpdFile cpdFile )
    {
        getFiles().remove( cpdFile );
    } //-- void removeFile( CpdFile )

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy