hudson.plugins.tasks.util
Class DetailBuilder

java.lang.Object
  extended by hudson.plugins.tasks.util.DetailBuilder

public class DetailBuilder
extends java.lang.Object

Creates detail objects for the selected element of a annotation container.

Author:
Ulli Hafner

Constructor Summary
protected DetailBuilder()
          Creates a new instance of DetailBuilder.
 
Method Summary
static DetailBuilder create()
          Creates a new detail builder.
 java.lang.Object createDetails(java.lang.String link, hudson.model.AbstractBuild<?,?> owner, AnnotationContainer container, java.lang.String defaultEncoding, java.lang.String displayName)
          Returns a detail object for the selected element of the specified annotation container.
 java.lang.Object createTrendDetails(java.lang.String link, hudson.model.AbstractBuild<?,?> owner, AnnotationContainer container, java.util.Collection<FileAnnotation> fixedAnnotations, java.util.Collection<FileAnnotation> newAnnotations, java.util.Collection<java.lang.String> errors, java.lang.String defaultEncoding, java.lang.String displayName)
          Returns a detail object for the selected element of the specified annotation container.
static void setDetailBuilder(java.lang.Class<? extends DetailBuilder> detailBuilder)
          Sets the detail builder class to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailBuilder

protected DetailBuilder()
Creates a new instance of DetailBuilder.

Method Detail

create

public static DetailBuilder create()
Creates a new detail builder.

Returns:
the detail builder

setDetailBuilder

public static void setDetailBuilder(java.lang.Class<? extends DetailBuilder> detailBuilder)
Sets the detail builder class to the specified value.

Parameters:
detailBuilder - the value to set

createTrendDetails

public java.lang.Object createTrendDetails(java.lang.String link,
                                           hudson.model.AbstractBuild<?,?> owner,
                                           AnnotationContainer container,
                                           java.util.Collection<FileAnnotation> fixedAnnotations,
                                           java.util.Collection<FileAnnotation> newAnnotations,
                                           java.util.Collection<java.lang.String> errors,
                                           java.lang.String defaultEncoding,
                                           java.lang.String displayName)
Returns a detail object for the selected element of the specified annotation container. The details will include the new and fixed warnings trends as well as the errors report.

Parameters:
link - the link to identify the sub page to show
owner - the build as owner of the detail page
container - the annotation container to get the details for
fixedAnnotations - the annotations fixed in this build
newAnnotations - the annotations new in this build
errors - the errors in this build
defaultEncoding - the default encoding to be used when reading and parsing files
displayName - the name of the selected object
Returns:
the dynamic result of this module detail view

createDetails

public java.lang.Object createDetails(java.lang.String link,
                                      hudson.model.AbstractBuild<?,?> owner,
                                      AnnotationContainer container,
                                      java.lang.String defaultEncoding,
                                      java.lang.String displayName)
Returns a detail object for the selected element of the specified annotation container.

Parameters:
link - the link to identify the sub page to show
owner - the build as owner of the detail page
container - the annotation container to get the details for
defaultEncoding - the default encoding to be used when reading and parsing files
displayName - the name of the selected object
Returns:
the dynamic result of this module detail view


Copyright © 2009. All Rights Reserved.