Package com.microstrategy.web.objects
Interface WebParsedMetric
-
- All Superinterfaces:
WebParsedObject
public interface WebParsedMetric extends WebParsedObject
This interface represents a metric resulted from parsing by backend. The main part is a token stream, and it may also contain a symbol folder used for resolving naming ambiguity.- Since:
- MicroStrategy Web 9.2.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanBeSmart()Returns a boolean value indicating whether this metric can be set to smart.intgetAggregateFromBase()Returns an integer indicating what Aggregated From Base is for a derived metric.intgetAllChildrenJoin()Returns an integer value fromEnumDSSXMLOuterJoinTypesindicating the outer join type of this metric.WebDataTypegetDataType()Gets the data type for this metric.intgetDecomposable()Returns an integer value fromEnumDSSXMLDecomposableindicating whether this metric is decomposable.intgetFromBaseFlag()Returns an integer indicating what DerivedMetricDynamicAggAndSubtotal value is set on a derived metric.WebFormatgetGridFormat()Returns theWebFormatobject for the values/data of the metric object.WebFormatgetHeaderFormat()Returns theWebFormatobject for the header of the metric object.java.lang.StringgetMetricEditType()Return the metric edit typeEnumDSSXMLMetricEditTypegenerated by backend parser for the token stream.intgetMetricFormatType()Returns an integer indicating what format type is for a derived metric.intgetMetricType()Returns an integer value fromEnumDSSXMLMetricTypeindicating the metric type.WebPropertyGroupgetPropertySets()Gets the property sets associated with this metric.intgetSubtotalFromBase()Returns an integer indicating what Subtotal From Base is for a derived metric.java.util.List<WebMetricSubtotal>getSubtotals()Gets the subtotals for this metric.voidsetAggregateFromBase(int aggregateFromBase)Set Aggregated From Base for a derived metric.voidsetAllChildrenJoin(int allChildrenJoinType)Set the value of all children join type.voidsetDecomposable(int decomposable)Set the value of the decomposable type, value fromEnumDSSXMLDecomposable.voidsetFormId(java.lang.String formId)Set the form id of the parsed objectvoidsetFromBaseFlag(int fromBaseFlag)Set DerivedMetricDynamicAggAndSubtotal value for a derived metric.voidsetIsIDForm(boolean isIDForm)Set whether the form is an ID form.voidsetMetricEditType(java.lang.String met)Set the metric edit typeEnumDSSXMLMetricEditTypevoidsetMetricFormatType(int metricFormatType)Set format type for a derived metric.voidsetMetricType(int metricType)Set the metric type, value fromEnumDSSXMLMetricType.voidsetSubtotalFromBase(int subtotalFromBase)Set Subtotal From Base (i.e.-
Methods inherited from interface com.microstrategy.web.objects.WebParsedObject
getDescription, getID, getLocalSymbolFolder, getMessageID, getName, getRejectErrorCode, getRejectErrorDescription, getSearchResultsFolder, getSubType, getTokenStream, getType, load, save, saveAs, setDescription, setMessageID, setName, setNew, setType, validate
-
-
-
-
Method Detail
-
getPropertySets
WebPropertyGroup getPropertySets()
Gets the property sets associated with this metric.- Returns:
- A
WebPropertyGroupobject, which contains the property sets associated with this metric.
-
getSubtotals
java.util.List<WebMetricSubtotal> getSubtotals()
Gets the subtotals for this metric.- Returns:
- A list of
WebMetricSubtotalobjects for this metric.
-
getDataType
WebDataType getDataType()
Gets the data type for this metric.- Returns:
- data type
-
getHeaderFormat
WebFormat getHeaderFormat()
Returns theWebFormatobject for the header of the metric object.
-
getGridFormat
WebFormat getGridFormat()
Returns theWebFormatobject for the values/data of the metric object.
-
getAllChildrenJoin
int getAllChildrenJoin()
Returns an integer value fromEnumDSSXMLOuterJoinTypesindicating the outer join type of this metric.- Returns:
- an integer value indicating the outer join type
-
setAllChildrenJoin
void setAllChildrenJoin(int allChildrenJoinType)
Set the value of all children join type. Value fromEnumDSSXMLOuterJoinTypesl- Parameters:
allChildrenJoinType-
-
getMetricType
int getMetricType()
Returns an integer value fromEnumDSSXMLMetricTypeindicating the metric type.- Returns:
- an integer value indicating the metric type
-
setMetricType
void setMetricType(int metricType)
Set the metric type, value fromEnumDSSXMLMetricType.- Parameters:
metricType-
-
getDecomposable
int getDecomposable()
Returns an integer value fromEnumDSSXMLDecomposableindicating whether this metric is decomposable.- Returns:
- an integer value indicating whether this metric is decomposable
-
setDecomposable
void setDecomposable(int decomposable)
Set the value of the decomposable type, value fromEnumDSSXMLDecomposable.- Parameters:
decomposable-
-
getAggregateFromBase
int getAggregateFromBase()
Returns an integer indicating what Aggregated From Base is for a derived metric.- Returns:
- int
-
setAggregateFromBase
void setAggregateFromBase(int aggregateFromBase)
Set Aggregated From Base for a derived metric.
-
getSubtotalFromBase
int getSubtotalFromBase()
Returns an integer indicating what Subtotal From Base is for a derived metric.- Returns:
- int
-
setSubtotalFromBase
void setSubtotalFromBase(int subtotalFromBase)
Set Subtotal From Base (i.e. AggreateFromBaseStyle) for a derived metric.
-
getFromBaseFlag
int getFromBaseFlag()
Returns an integer indicating what DerivedMetricDynamicAggAndSubtotal value is set on a derived metric.- Returns:
- a boolean value indicating what the AFB Subtotal Style is.
-
setFromBaseFlag
void setFromBaseFlag(int fromBaseFlag)
Set DerivedMetricDynamicAggAndSubtotal value for a derived metric.
-
canBeSmart
boolean canBeSmart()
Returns a boolean value indicating whether this metric can be set to smart.- Returns:
- a boolean value indicating whether this metric can be set to smart.
-
setMetricEditType
void setMetricEditType(java.lang.String met)
Set the metric edit typeEnumDSSXMLMetricEditType- Parameters:
met- metric edit type
-
getMetricEditType
java.lang.String getMetricEditType()
Return the metric edit typeEnumDSSXMLMetricEditTypegenerated by backend parser for the token stream.- Returns:
- metric edit type
-
getMetricFormatType
int getMetricFormatType()
Returns an integer indicating what format type is for a derived metric.- Returns:
- int
-
setMetricFormatType
void setMetricFormatType(int metricFormatType)
Set format type for a derived metric.
-
setFormId
void setFormId(java.lang.String formId)
Set the form id of the parsed object- Parameters:
formId-
-
setIsIDForm
void setIsIDForm(boolean isIDForm)
Set whether the form is an ID form.- Parameters:
isIDForm-
-
-