Class MobileGraphXMLTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.app.transforms.AbstractBasicReportTransform
-
- com.microstrategy.web.app.transforms.AbstractReportXMLTransform
-
- com.microstrategy.web.app.transforms.MobileGraphXMLTransform
-
- All Implemented Interfaces:
Transform
public class MobileGraphXMLTransform extends AbstractReportXMLTransform
MobileGraphXMLTransform is a report transform that generates a simplified version of the report xml.
-
-
Field Summary
Fields Modifier and Type Field Description FormalParameter_pageByXmlFormal parameter that contains the page by information in the form of an XML.FormalParameter_renderMetricNumberFormattingOnlyFormal parameter that determines whether only the metric values have 'style' associated with them and only the FormattingNumber property set is included in the 'styles' section for these metric styles.FormalParameter_renderPagebyInfoWhether to render page by info
Default value: trueFormalParameter_renderReportDataListNodeWhether to render the root node (report_data_list)
Default value: trueFormalParameter_renderStylesWhether to render styles
Default value: trueFormalParameter_renderSubtotalsstatic java.lang.StringFP_INCLUDE_MD_PROPERTIESstatic java.lang.StringFP_PAGE_BY_XMLstatic java.lang.StringFP_RENDER_PAGEBY_INFOstatic java.lang.StringFP_RENDER_STYLES-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractBasicReportTransform
_bean, _rb, _rwb, _vb
-
-
Constructor Summary
Constructors Constructor Description MobileGraphXMLTransform()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeFormsToObjectsTag(Tag parentTag, WebTemplateAttribute attTemplateUnit, com.microstrategy.web.app.transforms.AbstractSimplifiedReportXMLTransform.RefIDCounter rfdCounter)protected TagaddAttributeFormToObjectsTag(Tag parentTag, java.lang.String id, java.lang.String name, int rfd, java.lang.String parentObjectId, int baseFormType, boolean isIDForm)protected voidaddVisPropsProperty(Tag prsTag)java.lang.StringgetDescription()Returns a textual description of the transform.protected java.lang.StringgetDescriptor(int key)Get the descriptor for the given key.protected java.lang.StringgetDescriptor(java.lang.String key)Get the descriptor for the given key.protected intgetPropSetId(java.lang.String pSetName)TagsFactorygetTagsFactory()Convenience method for obtaining an instance of theTagsFactoryclass.protected voidrenderData(Tag reportDataTag)protected voidrenderDefinition(Tag reportDataTag)protected voidrenderProperties(Tag reportDataTag)voidrenderXml(MarkupOutput out)Renders the report's XML.static booleanvalidateTemplate(WebTemplate template, ViewBean vb, AppContext appContext)-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportXMLTransform
encodeXMLText, getWebTemplate, initGridData, render
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractBasicReportTransform
addFormalParameter, getElemsMapHelper, getGraphBean, getGridData, getHyperLinkHelper, getReportBean, getRWBean, getSupportedBeanType, getViewBean, getWebGridData, getWebReportGrid, initBeans, isDesignMode, isFeatureAvailable, isReport, isTrue, supports, transform
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports
-
-
-
-
Field Detail
-
_renderReportDataListNode
public FormalParameter _renderReportDataListNode
Whether to render the root node (report_data_list)
Default value: true
-
_renderMetricNumberFormattingOnly
public FormalParameter _renderMetricNumberFormattingOnly
Formal parameter that determines whether only the metric values have 'style' associated with them and only the FormattingNumber property set is included in the 'styles' section for these metric styles. Default value :true- Since:
- MicroStrategy Web 8.1.0
-
_renderSubtotals
public FormalParameter _renderSubtotals
- Since:
- MicroStrategy Web 8.1.1
-
_renderPagebyInfo
public FormalParameter _renderPagebyInfo
Whether to render page by info
Default value: true
-
FP_RENDER_PAGEBY_INFO
public static final java.lang.String FP_RENDER_PAGEBY_INFO
- See Also:
- Constant Field Values
-
_renderStyles
public FormalParameter _renderStyles
Whether to render styles
Default value: true
-
FP_RENDER_STYLES
public static final java.lang.String FP_RENDER_STYLES
- See Also:
- Constant Field Values
-
_pageByXml
public FormalParameter _pageByXml
Formal parameter that contains the page by information in the form of an XML. When this formal parameter is set, this information is also included in the output of the transform. Also, the rows are re-ordered such that the rows corresponding to the current page by elements are rendered first and then the rest of the rows The XML structure is as follows
<pageby cn="2">
<pageByUnit id="" unitName="" type="" pos="1" ceid="" cename=""/>
<pageByUnit id="" unitName="" type="" pos="1" ceid="" cename=""/>
...
</pageby>
-
FP_PAGE_BY_XML
public static final java.lang.String FP_PAGE_BY_XML
- See Also:
- Constant Field Values
-
FP_INCLUDE_MD_PROPERTIES
public static final java.lang.String FP_INCLUDE_MD_PROPERTIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
renderXml
public void renderXml(MarkupOutput out)
Description copied from class:AbstractReportXMLTransformRenders the report's XML.- Specified by:
renderXmlin classAbstractReportXMLTransform- Since:
- MicroStrategy Web 8.1.1
-
validateTemplate
public static boolean validateTemplate(WebTemplate template, ViewBean vb, AppContext appContext) throws MSTRCheckedException
- Throws:
MSTRCheckedException
-
getDescriptor
protected java.lang.String getDescriptor(int key)
Get the descriptor for the given key.
By default this method appends the prefix
If a descriptor is not found for the given key it returns [na]mstrWeb.to the key to find the resources in the Messages bundle. To find a descriptor for a specific key you might usegetDescriptor(String).- Parameters:
key- input key as anint, for example,1- Returns:
- descriptor as a
Stringcorresponding to the key sent in as parameter, for example,Home
-
getDescriptor
protected java.lang.String getDescriptor(java.lang.String key)
Get the descriptor for the given key.
The key is searched exactly as given in the Messages bundle.
If a descriptor is not found for the given key it returns [na]- Parameters:
key- input key as aString, for example,mstrWeb.1*- Returns:
- descriptor as a
Stringcorresponding to the key sent in as parameter, for example,Home. - Since:
- MicroStrategy Web 8.0.0
-
renderDefinition
protected void renderDefinition(Tag reportDataTag) throws WebObjectsException, WebBeanException
- Throws:
WebObjectsExceptionWebBeanException
-
renderProperties
protected void renderProperties(Tag reportDataTag)
-
addVisPropsProperty
protected void addVisPropsProperty(Tag prsTag)
-
addAttributeFormsToObjectsTag
protected void addAttributeFormsToObjectsTag(Tag parentTag, WebTemplateAttribute attTemplateUnit, com.microstrategy.web.app.transforms.AbstractSimplifiedReportXMLTransform.RefIDCounter rfdCounter)
-
renderData
protected void renderData(Tag reportDataTag) throws WebObjectsException, WebBeanException
- Throws:
WebObjectsExceptionWebBeanException
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TransformReturns a textual description of the transform.- Returns:
- The textual description of the transform.
-
addAttributeFormToObjectsTag
protected Tag addAttributeFormToObjectsTag(Tag parentTag, java.lang.String id, java.lang.String name, int rfd, java.lang.String parentObjectId, int baseFormType, boolean isIDForm)
-
getTagsFactory
public TagsFactory getTagsFactory()
Convenience method for obtaining an instance of theTagsFactoryclass.- Returns:
- a
TagsFactoryinstance to use for generatingTaginstances
-
getPropSetId
protected int getPropSetId(java.lang.String pSetName)
-
-