Package com.microstrategy.web.objects
Class WebMetricHierarchicalSortConfigImpl
- java.lang.Object
-
- com.microstrategy.web.objects.WebMetricHierarchicalSortConfigImpl
-
- All Implemented Interfaces:
WebMetricHierarchicalSortConfig,WebMetricSortConfig,WebSort,WebSortConfig
public class WebMetricHierarchicalSortConfigImpl extends java.lang.Object implements WebMetricHierarchicalSortConfig
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateDelta(RWDelta delta)intgetAxis()Returns the axis name configuredintgetKey()Returns the key of current sort object, which is used to look up the sort in the sorts collection.WebMetricgetMetric()Returns the metric which is the target of the sort.intgetPosition()Returns the position of current sort object in the sorts collection.booleangetRespectParent()Returns the Respect Parent flagintgetSortType()Returns the sort type of this sort object.java.lang.StringgetSubtotalID()Returns the subtotal ID setintgetSubtotalsPosition()Returns the position of subtotals in sorted result.intgetSubtotalType()Returns the subtotal type set.WebObjectInfogetTarget()Returns the target of this sortbooleanisAscending()Returns the sort order, which is ascending or not.voidsetAscending(boolean ascending)Sets the sort order to ascending or not.voidsetAxis(int axisName)Sets the axis namevoidsetElements(java.lang.String... elementIDs)voidsetMetric(WebMetric metric)This method is used to set the metric which is the target of the sort.voidsetRespectParent(boolean value)Sets the Respect Parent flagvoidsetSubtotalByType(int subtotalType)Sets the subtotal definition for the sort by specifying its subtotal type.voidsetSubtotalID(java.lang.String id)Sets the subtotal IDvoidsetSubtotalsPosition(int subtotalsPosition)Sets the position of subtotals in sorted result.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.objects.WebMetricSortConfig
getMetric, setElements, setMetric
-
Methods inherited from interface com.microstrategy.web.objects.WebSort
getKey, getPosition, getRespectParent, getSortType, getSubtotalsPosition, getTarget, isAscending, setAscending, setRespectParent, setSubtotalsPosition
-
Methods inherited from interface com.microstrategy.web.objects.WebSortConfig
generateDelta, getAxis, setAxis
-
-
-
-
Method Detail
-
getSubtotalID
public java.lang.String getSubtotalID()
Description copied from interface:WebMetricHierarchicalSortConfigReturns the subtotal ID set- Specified by:
getSubtotalIDin interfaceWebMetricHierarchicalSortConfig
-
getSubtotalType
public int getSubtotalType()
Description copied from interface:WebMetricHierarchicalSortConfigReturns the subtotal type set.- Specified by:
getSubtotalTypein interfaceWebMetricHierarchicalSortConfig
-
setSubtotalByType
public void setSubtotalByType(int subtotalType) throws java.lang.IllegalArgumentExceptionDescription copied from interface:WebMetricHierarchicalSortConfigSets the subtotal definition for the sort by specifying its subtotal type.- Specified by:
setSubtotalByTypein interfaceWebMetricHierarchicalSortConfig- Throws:
java.lang.IllegalArgumentException
-
setSubtotalID
public void setSubtotalID(java.lang.String id)
Description copied from interface:WebMetricHierarchicalSortConfigSets the subtotal ID- Specified by:
setSubtotalIDin interfaceWebMetricHierarchicalSortConfig
-
setElements
public void setElements(java.lang.String... elementIDs)
- Specified by:
setElementsin interfaceWebMetricSortConfig
-
getMetric
public WebMetric getMetric()
Description copied from interface:WebMetricSortConfigReturns the metric which is the target of the sort.- Specified by:
getMetricin interfaceWebMetricSortConfig- Returns:
- The metric which is the target of the sort, or null if it has not been set.
- See Also:
WebMetricSortConfig.setMetric(com.microstrategy.web.objects.WebMetric)
-
setMetric
public void setMetric(WebMetric metric) throws java.lang.IllegalArgumentException
Description copied from interface:WebMetricSortConfigThis method is used to set the metric which is the target of the sort.- Specified by:
setMetricin interfaceWebMetricSortConfig- 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:
WebMetricSortConfig.getMetric()
-
getTarget
public WebObjectInfo getTarget()
Description copied from interface:WebSortReturns the target of this sort
-
getAxis
public int getAxis()
Description copied from interface:WebSortConfigReturns the axis name configured- Specified by:
getAxisin interfaceWebSortConfig- Returns:
-
setAxis
public void setAxis(int axisName)
Description copied from interface:WebSortConfigSets the axis name- Specified by:
setAxisin interfaceWebSortConfig
-
getKey
public int getKey()
Description copied from interface:WebSortReturns the key of current sort object, which is used to look up the sort in the sorts collection. This has nothing to do with the sort-key.
-
getPosition
public int getPosition()
Description copied from interface:WebSortReturns the position of current sort object in the sorts collection.- Specified by:
getPositionin interfaceWebSort- Returns:
- The position (1-based) of current sort object in the sorts collection.
-
getSortType
public int getSortType()
Description copied from interface:WebSortReturns the sort type of this sort object. The sort type only can be specified on creation time.- Specified by:
getSortTypein interfaceWebSort- Returns:
- The sort type, values from
EnumDSSXMLSortType.
-
getSubtotalsPosition
public int getSubtotalsPosition()
Description copied from interface:WebSortReturns the position of subtotals in sorted result. The possible value are inEnumDSSXMLSubtotalsPosition. Default is EnumDSSXMLSubtotalsPosition.DssSubtotalsPositionInherit- Specified by:
getSubtotalsPositionin interfaceWebSort- Returns:
- The position of subtotals in sorted result, values from
EnumDSSXMLSubtotalsPosition. - See Also:
WebSort.setSubtotalsPosition(int)
-
isAscending
public boolean isAscending()
Description copied from interface:WebSortReturns the sort order, which is ascending or not.- Specified by:
isAscendingin interfaceWebSort- Returns:
- True if the result will be sorted in ascending order; else false. Default value is true.
-
setAscending
public void setAscending(boolean ascending)
Description copied from interface:WebSortSets the sort order to ascending or not.- Specified by:
setAscendingin interfaceWebSort- Parameters:
ascending- True to sort in ascending order, false to descending order.
-
setSubtotalsPosition
public void setSubtotalsPosition(int subtotalsPosition)
Description copied from interface:WebSortSets the position of subtotals in sorted result. The possible value are inEnumDSSXMLSubtotalsPosition. Default is EnumDSSXMLSubtotalsPosition.DssSubtotalsPositionInherit.- Specified by:
setSubtotalsPositionin interfaceWebSort- Parameters:
subtotalsPosition- The position of subtotals in sorted result, values fromEnumDSSXMLSubtotalsPosition.- See Also:
WebSort.getSubtotalsPosition()
-
getRespectParent
public boolean getRespectParent()
Description copied from interface:WebSortReturns the Respect Parent flag- Specified by:
getRespectParentin interfaceWebSort- Returns:
-
setRespectParent
public void setRespectParent(boolean value)
Description copied from interface:WebSortSets the Respect Parent flag- Specified by:
setRespectParentin interfaceWebSort- Parameters:
value- value
-
generateDelta
public void generateDelta(RWDelta delta)
- Specified by:
generateDeltain interfaceWebSortConfig
-
-