Package org.dspace.app.statistics
Class Statistics
java.lang.Object
org.dspace.app.statistics.Statistics
This class provides a wrapper for a related set of statistics. It contains
headers for the Stat key and value pairs for the convenience of displaying
them to users as, for example, HTML table headers. It also holds the
list of statistics, and can have them added to itself individually or in
arrays
- Author:
- Richard Jones
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd an individual statistic to this objectvoidadd an array of statistics to this objectget the explanation or clarification information for this block of statsintgetFloor()get the floor value used in this stat blockget the name of the result setget the header for this particular stats blockget the name of the statisticStat[]getStats()get an array of statistics back from this objectvoidsetExplanation(String explanation) set the explanatory or clarification information for this block of statsvoidsetFloor(int floor) set the floor value used in this stat blockvoidsetResultName(String name) set the name of the results columnvoidsetSectionHeader(String header) set the header for this particular stats blockvoidsetStatName(String name) set the name of the statistic column
-
Method Details
-
add
add an individual statistic to this object- Parameters:
stat- a statistic for this object
-
setStatName
set the name of the statistic column- Parameters:
name- the name of the statistic column
-
setResultName
set the name of the results column- Parameters:
name- the name of the results column
-
setExplanation
set the explanatory or clarification information for this block of stats- Parameters:
explanation- the explanation for this stat block
-
getExplanation
get the explanation or clarification information for this block of stats- Returns:
- the explanation for this stat block
-
setFloor
public void setFloor(int floor) set the floor value used in this stat block- Parameters:
floor- the floor value for this stat block
-
getFloor
public int getFloor()get the floor value used in this stat block- Returns:
- the floor value for this stat block
-
setSectionHeader
set the header for this particular stats block- Parameters:
header- for this stats block
-
getSectionHeader
get the header for this particular stats block- Returns:
- the header for this stats block
-
add
add an array of statistics to this object- Parameters:
stats- an array of statistics
-
getStats
get an array of statistics back from this object- Returns:
- the statistics array
-
getStatName
get the name of the statistic- Returns:
- the name of the statistic
-
getResultName
get the name of the result set- Returns:
- the name of the result set
-