Package com.microstrategy.web.objects
Interface WebMetricSort
-
- All Superinterfaces:
WebSort
- All Known Subinterfaces:
WebMetricHierarchicalSort
public interface WebMetricSort extends WebSort
This interface contains methods specific to the operations which are necessary to perform a metric sort.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebElements
getElements()
Returns aWebElements
collection which can be used to specify additional keys to be used in the sort.WebMetric
getMetric()
Returns the metric which is the target of the sort.void
setMetric(WebMetric metric)
This method is used to set the metric which is the target of the sort.-
Methods inherited from interface com.microstrategy.web.objects.WebSort
getKey, getPosition, getRespectParent, getSortType, getSubtotalsPosition, getTarget, isAscending, setAscending, setRespectParent, setSubtotalsPosition
-
-
-
-
Method Detail
-
getMetric
WebMetric getMetric()
Returns the metric which is the target of the sort.- Returns:
- The metric which is the target of the sort, or null if it has not been set.
- See Also:
setMetric(com.microstrategy.web.objects.WebMetric)
-
setMetric
void setMetric(WebMetric metric) throws java.lang.IllegalArgumentException
This method is used to set the metric which is the target of the sort.- Parameters:
metric
- The metric object which will be the target of the sort.- Throws:
java.lang.IllegalArgumentException
- Thrown if the parameter is null or the given metric does not exist on the template.- See Also:
getMetric()
-
getElements
WebElements getElements()
Returns aWebElements
collection which can be used to specify additional keys to be used in the sort. This collection will generally contain elements of units on the template other than the metrics collection. NOTE: User normally should not add a metric element into this elements collection. If a user adds a metric element when there is no metric defined in this sort object, then the element information will be used to set the metric. If a user adds a metric element when the metric has already been defined in this object, then the input element id will be validated with current metric. An exception may be thrown when validation fails. The metric element will not be added into this collection.- Returns:
- A
WebElements
collection, which will be used to determine additional sort keys for the metric sort.
-
-