Package com.microstrategy.web.objects
Interface WebMetricHierarchicalSort
-
- All Superinterfaces:
WebMetricSort,WebSort
public interface WebMetricHierarchicalSort extends WebMetricSort
This interface represents a metric hierarchical sort. This interface contains the methods which are relevant only for a metric hierarchical sort.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description WebTemplateMetricSubtotalgetSubtotal()Deprecated.UsegetTemplateSubtotal()insteadWebTemplateSubtotalgetTemplateSubtotal()Returns the subtotal has been defined for this hierarchical sort.voidsetSubtotal(WebTemplateMetricSubtotal subtotal)Deprecated.UsesetSubtotal(WebTemplateSubtotal)insteadvoidsetSubtotal(WebTemplateSubtotal subtotal)Sets aWebTemplateSubtotalto be the subtotal definition for this hierarchical sort.voidsetSubtotalByType(int subtotalType)Sets the subtotal definition for the sort by specifying its subtotal type.-
Methods inherited from interface com.microstrategy.web.objects.WebMetricSort
getElements, getMetric, setMetric
-
Methods inherited from interface com.microstrategy.web.objects.WebSort
getKey, getPosition, getRespectParent, getSortType, getSubtotalsPosition, getTarget, isAscending, setAscending, setRespectParent, setSubtotalsPosition
-
-
-
-
Method Detail
-
getSubtotal
WebTemplateMetricSubtotal getSubtotal()
Deprecated.UsegetTemplateSubtotal()insteadReturns the subtotal has been defined for this hierarchical sort.- Returns:
- The currently set
WebTemplateMetricSubtotalobject. This will be null if it has not been set. - See Also:
setSubtotal(com.microstrategy.web.objects.WebTemplateMetricSubtotal)
-
setSubtotal
void setSubtotal(WebTemplateMetricSubtotal subtotal)
Deprecated.UsesetSubtotal(WebTemplateSubtotal)insteadSets aWebTemplateMetricSubtotalto be the subtotal definition for this hierarchical sort.- Parameters:
subtotal- TheWebTemplateMetricSubtotalobject to serve as the definition. This object should come from the template that this sort object is associated with.- See Also:
getSubtotal()
-
setSubtotalByType
void setSubtotalByType(int subtotalType) throws java.lang.IllegalArgumentExceptionSets the subtotal definition for the sort by specifying its subtotal type. This method will look up the correspondingWebTemplateSubtotalobject with the given type. Note that the setSubtotal method must be called to set a custom subtotal as the subject of the sort.- Parameters:
subtotalType- The subtotal type to search for, fromEnumDSSXMLMetricType.- Throws:
java.lang.IllegalArgumentException- Thrown if the subtotalType is not a valid value, if the subtotal type given is DssXmlMetricSubtotal, or if the given subtotal is not currently set on the associated metric.
-
getTemplateSubtotal
WebTemplateSubtotal getTemplateSubtotal()
Returns the subtotal has been defined for this hierarchical sort.- Returns:
- The currently set
WebTemplateSubtotalobject. This will be null if it has not been set. - Since:
- MicroStrategy Web 9.0.0
- See Also:
setSubtotal(com.microstrategy.web.objects.WebTemplateMetricSubtotal)
-
setSubtotal
void setSubtotal(WebTemplateSubtotal subtotal)
Sets aWebTemplateSubtotalto be the subtotal definition for this hierarchical sort.- Parameters:
subtotal- TheWebTemplateSubtotalobject to serve as the definition. This object should come from the template that this sort object is associated with.- Since:
- MicroStrategy Web 9.0.0
- See Also:
getSubtotal()
-
-