Class DepthLabels
java.lang.Object
org.gcube.informationsystem.resourceregistry.statistics.DepthLabels
The labels of each depth of the Context tree in the public statistics, as configured in the
database of the registry (
StatisticsConfigurationStore): the long one where Contexts are
counted by depth, the short one where a value is given per depth. A depth with no short label
takes the long one, and one with no label at all is shown as depth N.- Author:
- Luca Frosini (ISTI - CNR)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DepthLabels
public DepthLabels() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionReads the labels configured now.- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the configuration cannot be read
-
-
Method Details
-
label
- Parameters:
depth- a depth of the tree,1for a Root- Returns:
- its long label
-
shortLabel
- Parameters:
depth- a depth of the tree,1for a Root- Returns:
- its short label, or the long one when it has none
-