Package com.microstrategy.web.objects
Interface WebRankMetric
- 
public interface WebRankMetricThe WebRankMetric interface represents a rank metric object.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebObjectInfogetBreakByUnit()Returns the unit over which the rank will be performed.WebMetricgetMetric()Returns theWebMetricobject whose values should be ranked.booleanisAscending()Returns whether the ranking is ascending(true) or descending(false).booleanisDynamic()Returns whether the ranking should be dynamic (values of the metric change when report is pivoted) or static (values of the metric are moved, but not changed when is pivoted).voidsetAscending(boolean ascending)Sets whether the ranking should be ascending or descending.voidsetBreakByUnit(WebObjectInfo object)Sets the unit over which the rank will be performed.voidsetDynamic(boolean dynamic)Sets whether the ranking should be dynamic or static. 
 - 
 
- 
- 
Method Detail
- 
getMetric
WebMetric getMetric()
Returns theWebMetricobject whose values should be ranked.- Returns:
 - The 
WebMetricobject whose values should be ranked. 
 
- 
isAscending
boolean isAscending()
Returns whether the ranking is ascending(true) or descending(false). Default value is true.- Returns:
 - Whether the ranking is ascending or descending.
 
 
- 
setAscending
void setAscending(boolean ascending)
Sets whether the ranking should be ascending or descending.- Parameters:
 ascending- This should be true if the ranking should be ascending, false otherwise
 
- 
getBreakByUnit
WebObjectInfo getBreakByUnit()
Returns the unit over which the rank will be performed. This translates into the "break-by" level of the ranking metric. Default value is null.- Returns:
 - The 
WebObjectInfoobject which has the break by unit information. - See Also:
 setBreakByUnit(com.microstrategy.web.objects.WebObjectInfo)
 
- 
setBreakByUnit
void setBreakByUnit(WebObjectInfo object) throws java.lang.IllegalArgumentException
Sets the unit over which the rank will be performed.- Parameters:
 object- TheWebObjectInfoobject that contains the information about the break by unit. It has to be contained in the template.- Throws:
 java.lang.IllegalArgumentException- Thrown if theWebObjectInfoobject does not exist in the template.- See Also:
 getBreakByUnit()
 
- 
isDynamic
boolean isDynamic()
Returns whether the ranking should be dynamic (values of the metric change when report is pivoted) or static (values of the metric are moved, but not changed when is pivoted).- Returns:
 - Whether the ranking should be dynamic or static.
 
 
- 
setDynamic
void setDynamic(boolean dynamic)
Sets whether the ranking should be dynamic or static.- Parameters:
 dynamic- This should be true if the ranking should be dynamic, false otherwise.
 
 - 
 
 -