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 boolean
canBeSmart()
Returns a boolean value indicating whether this metric can be set to smart.int
getAggregateFromBase()
Returns an integer indicating what Aggregated From Base is for a derived metric.int
getAllChildrenJoin()
Returns an integer value fromEnumDSSXMLOuterJoinTypes
indicating the outer join type of this metric.WebDataType
getDataType()
Gets the data type for this metric.int
getDecomposable()
Returns an integer value fromEnumDSSXMLDecomposable
indicating whether this metric is decomposable.int
getFromBaseFlag()
Returns an integer indicating what DerivedMetricDynamicAggAndSubtotal value is set on a derived metric.WebFormat
getGridFormat()
Returns theWebFormat
object for the values/data of the metric object.WebFormat
getHeaderFormat()
Returns theWebFormat
object for the header of the metric object.java.lang.String
getMessageID()
Return the Report or RW message ID associated with this WebParsedMetric object.java.lang.String
getMetricEditType()
Return the metric edit typeEnumDSSXMLMetricEditType
generated by backend parser for the token stream.int
getMetricType()
Returns an integer value fromEnumDSSXMLMetricType
indicating the metric type.WebPropertyGroup
getPropertySets()
Gets the property sets associated with this metric.int
getSubtotalFromBase()
Returns an integer indicating what Subtotal From Base is for a derived metric.java.util.List<WebMetricSubtotal>
getSubtotals()
Gets the subtotals for this metric.void
setAggregateFromBase(int aggregateFromBase)
Set Aggregated From Base for a derived metric.void
setAllChildrenJoin(int allChildrenJoinType)
Set the value of all children join type.void
setDecomposable(int decomposable)
Set the value of the decomposable type, value fromEnumDSSXMLDecomposable
.void
setFormId(java.lang.String formId)
Set the form id of the parsed objectvoid
setFromBaseFlag(int fromBaseFlag)
Set DerivedMetricDynamicAggAndSubtotal value for a derived metric.void
setIsIDForm(boolean isIDForm)
Set whether the form is an ID form.void
setMessageID(java.lang.String mid)
Set Report or RW message ID which will be passed to xmlCommand "pm" to support Derived Metric object.void
setMetricEditType(java.lang.String met)
Set the metric edit typeEnumDSSXMLMetricEditType
void
setMetricType(int metricType)
Set the metric type, value fromEnumDSSXMLMetricType
.void
setSubtotalFromBase(int subtotalFromBase)
Set Subtotal From Base (i.e.-
Methods inherited from interface com.microstrategy.web.objects.WebParsedObject
getDescription, getID, getLocalSymbolFolder, getName, getRejectErrorCode, getRejectErrorDescription, getSearchResultsFolder, getSubType, getTokenStream, getType, load, save, saveAs, setDescription, setName, setNew, setType, validate
-
-
-
-
Method Detail
-
getPropertySets
WebPropertyGroup getPropertySets()
Gets the property sets associated with this metric.- Returns:
- A
WebPropertyGroup
object, 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
WebMetricSubtotal
objects for this metric.
-
getDataType
WebDataType getDataType()
Gets the data type for this metric.- Returns:
- data type
-
getHeaderFormat
WebFormat getHeaderFormat()
Returns theWebFormat
object for the header of the metric object.
-
getGridFormat
WebFormat getGridFormat()
Returns theWebFormat
object for the values/data of the metric object.
-
getAllChildrenJoin
int getAllChildrenJoin()
Returns an integer value fromEnumDSSXMLOuterJoinTypes
indicating 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 fromEnumDSSXMLOuterJoinTypes
l- Parameters:
allChildrenJoinType
-
-
getMetricType
int getMetricType()
Returns an integer value fromEnumDSSXMLMetricType
indicating 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 fromEnumDSSXMLDecomposable
indicating 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 typeEnumDSSXMLMetricEditType
generated by backend parser for the token stream.- Returns:
- metric edit type
-
setMessageID
void setMessageID(java.lang.String mid)
Set Report or RW message ID which will be passed to xmlCommand "pm" to support Derived Metric object.- Parameters:
mid
-
-
getMessageID
java.lang.String getMessageID()
Return the Report or RW message ID associated with this WebParsedMetric object.- Parameters:
mid
-
-
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
-
-
-