| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<IqmDataBox> |
customResults |
protected ArrayList<IqmDataBox> |
imageResults |
protected ArrayList<IqmDataBox> |
plotResults |
protected List<ArrayList<IqmDataBox>> |
resultRegistry |
protected ArrayList<IqmDataBox> |
tableResults |
| Constructor and Description |
|---|
Result() |
Result(IDataModel item)
Creates a new
Result and adds the item to the correct result
list. |
Result(IqmDataBox item)
Creates a new
Result and adds the item to the correct result
list. |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(IDataModel item)
Adds a
IDataModel item to the Result. |
void |
addItem(IqmDataBox item)
Adds an item to the
Result. |
boolean |
hasCustomResults()
Returns whether or not the result contains custom results.
|
boolean |
hasImages()
Returns whether or not the result contains images.
|
boolean |
hasPlots()
Returns whether or not the result contains plots.
|
boolean |
hasTables()
Returns whether or not the result contains tables.
|
boolean |
isMultiResult()
This function checks if the result holds more than one item.
|
static boolean |
isMultiResult(IResult result)
This function checks if the result holds more than one item.
|
List<ArrayList<IqmDataBox>> |
listAllElements()
Gets the registry of the results.
|
ArrayList<IqmDataBox> |
listCustomResults()
Gets all custom results as
IqmDataBoxes in this result object. |
ArrayList<IqmDataBox> |
listImageResults()
Gets all image results as
IqmDataBoxes in this result object. |
ArrayList<IqmDataBox> |
listPlotResults()
Gets all plot results as
IqmDataBoxes in this result object. |
ArrayList<IqmDataBox> |
listTableResults()
Gets all table results as
IqmDataBoxes in this result object. |
protected List<ArrayList<IqmDataBox>> resultRegistry
protected ArrayList<IqmDataBox> imageResults
protected ArrayList<IqmDataBox> plotResults
protected ArrayList<IqmDataBox> tableResults
protected ArrayList<IqmDataBox> customResults
public Result()
public Result(IqmDataBox item)
Result and adds the item to the correct result
list.item - public Result(IDataModel item)
Result and adds the item to the correct result
list.item - public List<ArrayList<IqmDataBox>> listAllElements()
listAllElements in interface IResultList of ArrayLists containing image, plot,
table and custom resultspublic ArrayList<IqmDataBox> listImageResults()
IqmDataBoxes in this result object.listImageResults in interface IResultnull if no images are setpublic ArrayList<IqmDataBox> listPlotResults()
IqmDataBoxes in this result object.listPlotResults in interface IResultnull if no plots are setpublic ArrayList<IqmDataBox> listTableResults()
IqmDataBoxes in this result object.listTableResults in interface IResultpublic ArrayList<IqmDataBox> listCustomResults()
IqmDataBoxes in this result object.listCustomResults in interface IResultpublic boolean hasImages()
public boolean hasPlots()
public boolean hasTables()
public boolean hasCustomResults()
hasCustomResults in interface IResulttrue, if custom results are present,
false otherwisepublic void addItem(IqmDataBox item) throws IllegalArgumentException
Result.
The correct ArrayList for the item is determined by the data type
of the IqmDataBox.
addItem in interface IResultitem - the IqmDataBoxIllegalArgumentException - if the item is nullpublic void addItem(IDataModel item) throws IllegalArgumentException
IDataModel item to the Result.
The correct ArrayList of the item is determined by the data type
of the IqmDataBox.
addItem in interface IResultitem - IllegalArgumentException - if the item is nullpublic boolean isMultiResult()
IResultisMultiResult in interface IResulttrue, if the result contains more than one item,
false otherwiseCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.