Package com.microstrategy.web.app.utils
Class TemplateParser
- java.lang.Object
 - 
- com.microstrategy.web.app.utils.TemplateParser
 
 
- 
- Direct Known Subclasses:
 ThresholdsTemplateParser
public class TemplateParser extends java.lang.ObjectThis class contains some public utility methods that can be used for handling parameters included on HttpServletRequest, RequestKeys objects or other.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intL_PROPERTY_AGGFROMBASEProperty index for template element use value from aggregate from value or notstatic intL_PROPERTY_ALIASProperty index for template element's aliasstatic intL_PROPERTY_DIDProperty to indicate if a derived metric is defined on dataset or notstatic intL_PROPERTY_FORMULAProperty index for template element's formulastatic intL_PROPERTY_HASDYNAMICALIASProperty index for template element's alias being dynamic or notstatic intL_PROPERTY_ISDEFINEDONDATASETProperty to indicate if a derived metric is defined on dataset or notstatic intL_PROPERTY_ISDERIVEDProperty index for template element being derived or notstatic intL_PROPERTY_KEYProperty index for template element's keystatic intL_PROPERTY_NAMEProperty index for template element's namestatic intL_PROPERTY_POSITIONProperty index for template element's positionstatic intL_PROPERTY_TYPEProperty index for template element's typestatic intPROPERTY_SIZEProperty array size 
- 
Constructor Summary
Constructors Constructor Description TemplateParser(ReportBean rb)Deprecated.TemplateParser(ViewBean vb)Initializes the ViewBean object 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[][]getTemplateElementArray()return a String[][] objectsintgetTemplateElementIndex(int key)Gets the element index from a metricjava.util.ArrayListgetTemplateElementList()Gets the template elements as an ArrayListprotected booleanisElementVisible() 
 - 
 
- 
- 
Field Detail
- 
L_PROPERTY_NAME
public static final int L_PROPERTY_NAME
Property index for template element's name- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_ALIAS
public static final int L_PROPERTY_ALIAS
Property index for template element's alias- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_KEY
public static final int L_PROPERTY_KEY
Property index for template element's key- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_TYPE
public static final int L_PROPERTY_TYPE
Property index for template element's type- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_FORMULA
public static final int L_PROPERTY_FORMULA
Property index for template element's formula- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_POSITION
public static final int L_PROPERTY_POSITION
Property index for template element's position- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_ISDERIVED
public static final int L_PROPERTY_ISDERIVED
Property index for template element being derived or not- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_HASDYNAMICALIAS
public static final int L_PROPERTY_HASDYNAMICALIAS
Property index for template element's alias being dynamic or not- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_AGGFROMBASE
public static final int L_PROPERTY_AGGFROMBASE
Property index for template element use value from aggregate from value or not- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_ISDEFINEDONDATASET
public static final int L_PROPERTY_ISDEFINEDONDATASET
Property to indicate if a derived metric is defined on dataset or not- See Also:
 - Constant Field Values
 
 
- 
L_PROPERTY_DID
public static final int L_PROPERTY_DID
Property to indicate if a derived metric is defined on dataset or not- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_SIZE
public static final int PROPERTY_SIZE
Property array size- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
TemplateParser
public TemplateParser(ReportBean rb)
Deprecated.Constructor from a report bean object- Parameters:
 rb- report bean object
 
- 
TemplateParser
public TemplateParser(ViewBean vb)
Initializes the ViewBean object- Since:
 - MicroStrategy Web 8.0.0
 
 
 - 
 
- 
Method Detail
- 
getTemplateElementArray
public java.lang.String[][] getTemplateElementArray()
return a String[][] objects- Returns:
 - String array
 
 
- 
getTemplateElementIndex
public int getTemplateElementIndex(int key)
Gets the element index from a metric- Parameters:
 key- key for the template unit or template metric unit- Returns:
 - the element index
 
 
- 
getTemplateElementList
public java.util.ArrayList getTemplateElementList()
Gets the template elements as an ArrayList- Returns:
 - template elements as an ArrayList
 
 
- 
isElementVisible
protected boolean isElementVisible()
 
 - 
 
 -