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

hudson.plugins.analysis.views.AttributeDetail Maven / Gradle / Ivy

The newest version!
package hudson.plugins.analysis.views;

import java.util.Collection;

import hudson.model.AbstractBuild;

import hudson.plugins.analysis.util.model.FileAnnotation;

/**
 * Result object to visualize the statistics of a given attribute.
 *
 * @author Ulli Hafner
 */
public class AttributeDetail extends AbstractAnnotationsDetail {
    /** Unique identifier of this class. */
    private static final long serialVersionUID = -1854984151887397361L;
    /** Name of the attribute. */
    private final String attributeName;

    /**
     * Creates a new instance of {@link AttributeDetail}.
     *
     * @param owner
     *            current build as owner of this action.
     * @param detailFactory
     *            factory to create detail objects with
     * @param annotations
     *            the module to show the details for
     * @param header
     *            header to be shown on detail page
     * @param defaultEncoding
     *            the default encoding to be used when reading and parsing files
     * @param name
     *            name of the attribute shown in the bread crumb
     */
    public AttributeDetail(final AbstractBuild owner, final DetailFactory detailFactory, final Collection annotations, final String defaultEncoding, final String header, final String name) {
        super(owner, detailFactory, annotations, defaultEncoding, header, Hierarchy.PROJECT);
        attributeName = name;
    }

    /** {@inheritDoc} */
    public String getDisplayName() {
        return attributeName;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy