hudson.plugins.plot
Class XMLSeries

java.lang.Object
  extended by hudson.plugins.plot.Series
      extended by hudson.plugins.plot.XMLSeries

public class XMLSeries
extends Series

Represents a plot data series configuration from an XML file.

Author:
Allen Reese

Field Summary
 
Fields inherited from class hudson.plugins.plot.Series
file, fileType, label
 
Constructor Summary
XMLSeries(String file, String xpath, String nodeType, String url)
           
 
Method Summary
 String getNodeType()
           
 String getUrl()
           
 String getXpath()
           
 List<PlotPoint> loadSeries(hudson.FilePath workspaceRootDir, PrintStream logger)
          Load the series from a properties file.
 
Methods inherited from class hudson.plugins.plot.Series
getFile, getFileType, getLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSeries

@DataBoundConstructor
public XMLSeries(String file,
                                      String xpath,
                                      String nodeType,
                                      String url)
Parameters:
file -
label -
req - Stapler request
radioButtonId - ID used to find the parameters specific to this instance.
Throws:
javax.servlet.ServletException
Method Detail

getXpath

public String getXpath()

getNodeType

public String getNodeType()

getUrl

public String getUrl()

loadSeries

public List<PlotPoint> loadSeries(hudson.FilePath workspaceRootDir,
                                  PrintStream logger)
Load the series from a properties file.

Specified by:
loadSeries in class Series
Parameters:
workspaceRootDir - the root directory of the workspace
logger - the logger to use
Returns:
a PlotPoint array of points to plot


Copyright © 2004-2014. All Rights Reserved.