Package hudson.plugins.plot
Class SeriesFactory
- java.lang.Object
-
- hudson.plugins.plot.SeriesFactory
-
public class SeriesFactory extends Object
This class creates a Series class based on the data source- Author:
- areese, Alan.Harder@sun.com
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Series
createSeries(net.sf.json.JSONObject formData, org.kohsuke.stapler.StaplerRequest req)
Using file and label and the Stapler request, create a subclass of series that can process the type selected.static List<Series>
createSeriesList(Object data, org.kohsuke.stapler.StaplerRequest req)
static net.sf.json.JSONArray
getArray(Object data)
Get data as JSONArray (wrap single JSONObject in array if needed).
-
-
-
Method Detail
-
createSeries
public static Series createSeries(net.sf.json.JSONObject formData, org.kohsuke.stapler.StaplerRequest req)
Using file and label and the Stapler request, create a subclass of series that can process the type selected.- Parameters:
formData
- JSON data for series
-
createSeriesList
public static List<Series> createSeriesList(Object data, org.kohsuke.stapler.StaplerRequest req)
-
getArray
public static net.sf.json.JSONArray getArray(Object data)
Get data as JSONArray (wrap single JSONObject in array if needed).
-
-