hudson.plugins.analysis.views
Class PriorityDetailFactory

java.lang.Object
  extended by hudson.plugins.analysis.views.PriorityDetailFactory

public class PriorityDetailFactory
extends Object

Creates priority detail objects.

Author:
Ulli Hafner

Constructor Summary
PriorityDetailFactory(DetailFactory detailFactory)
          Creates a new instance of PriorityDetailFactory.
 
Method Summary
 PrioritiesDetail create(String priority, hudson.model.AbstractBuild<?,?> owner, AnnotationContainer container, String defaultEncoding, String header)
          Creates a new priorities detail object.
protected  PrioritiesDetail createPrioritiesDetail(Priority priority, hudson.model.AbstractBuild<?,?> owner, AnnotationContainer container, String defaultEncoding, String header)
          Creates a new priorities detail.
 boolean isPriority(String value)
          Returns whether the provided value is a valid priority.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorityDetailFactory

public PriorityDetailFactory(DetailFactory detailFactory)
Creates a new instance of PriorityDetailFactory.

Parameters:
detailFactory - the detail factory to use
Method Detail

isPriority

public boolean isPriority(String value)
Returns whether the provided value is a valid priority.

Parameters:
value - the value to check
Returns:
true if the provided value is a valid priority, false otherwise

create

public PrioritiesDetail create(String priority,
                               hudson.model.AbstractBuild<?,?> owner,
                               AnnotationContainer container,
                               String defaultEncoding,
                               String header)
Creates a new priorities detail object.

Parameters:
priority - the priority to show
owner - owner of the build
container - annotation container
header - header to show
defaultEncoding - the default encoding to be used when reading and parsing files
Returns:
the priority detail

createPrioritiesDetail

protected PrioritiesDetail createPrioritiesDetail(Priority priority,
                                                  hudson.model.AbstractBuild<?,?> owner,
                                                  AnnotationContainer container,
                                                  String defaultEncoding,
                                                  String header)
Creates a new priorities detail.

Parameters:
priority - the priority to show
owner - owner of the build
container - annotation container
defaultEncoding - the default encoding to be used when reading and parsing files
header - header to show
Returns:
the priority detail


Copyright © 2004-2012 Hudson. All Rights Reserved.