public class

TemplateParser

extends Object
java.lang.Object
   ↳ com.microstrategy.web.app.utils.TemplateParser
Known Direct Subclasses

Class Overview

This class contains some public utility methods that can be used for handling parameters included on HttpServletRequest, RequestKeys objects or other.

Summary

Constants
int L_PROPERTY_AGGFROMBASE Property index for template element use value from aggregate from value or not
int L_PROPERTY_ALIAS Property index for template element's alias
int L_PROPERTY_DID Property to indicate if a derived metric is defined on dataset or not
int L_PROPERTY_FORMULA Property index for template element's formula
int L_PROPERTY_HASDYNAMICALIAS Property index for template element's alias being dynamic or not
int L_PROPERTY_ISDEFINEDONDATASET Property to indicate if a derived metric is defined on dataset or not
int L_PROPERTY_ISDERIVED Property index for template element being derived or not
int L_PROPERTY_KEY Property index for template element's key
int L_PROPERTY_NAME Property index for template element's name
int L_PROPERTY_POSITION Property index for template element's position
int L_PROPERTY_TYPE Property index for template element's type
int PROPERTY_SIZE Property array size
Public Constructors
TemplateParser(ReportBean rb)
This constructor is deprecated. No replacement.
TemplateParser(ViewBean vb)
Initializes the ViewBean object
Public Methods
String[][] getTemplateElementArray()
return a String[][] objects
int getTemplateElementIndex(int key)
Gets the element index from a metric
ArrayList getTemplateElementList()
Gets the template elements as an ArrayList
Protected Methods
boolean isElementVisible()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int L_PROPERTY_AGGFROMBASE

Property index for template element use value from aggregate from value or not

Constant Value: 8 (0x00000008)

public static final int L_PROPERTY_ALIAS

Property index for template element's alias

Constant Value: 1 (0x00000001)

public static final int L_PROPERTY_DID

Property to indicate if a derived metric is defined on dataset or not

Constant Value: 10 (0x0000000a)

public static final int L_PROPERTY_FORMULA

Property index for template element's formula

Constant Value: 4 (0x00000004)

public static final int L_PROPERTY_HASDYNAMICALIAS

Property index for template element's alias being dynamic or not

Constant Value: 7 (0x00000007)

public static final int L_PROPERTY_ISDEFINEDONDATASET

Property to indicate if a derived metric is defined on dataset or not

Constant Value: 9 (0x00000009)

public static final int L_PROPERTY_ISDERIVED

Property index for template element being derived or not

Constant Value: 6 (0x00000006)

public static final int L_PROPERTY_KEY

Property index for template element's key

Constant Value: 2 (0x00000002)

public static final int L_PROPERTY_NAME

Property index for template element's name

Constant Value: 0 (0x00000000)

public static final int L_PROPERTY_POSITION

Property index for template element's position

Constant Value: 5 (0x00000005)

public static final int L_PROPERTY_TYPE

Property index for template element's type

Constant Value: 3 (0x00000003)

public static final int PROPERTY_SIZE

Property array size

Constant Value: 11 (0x0000000b)

Public Constructors

public TemplateParser (ReportBean rb)

This constructor is deprecated.
No replacement.

Constructor from a report bean object

Parameters
rb report bean object

public TemplateParser (ViewBean vb)

Initializes the ViewBean object

Public Methods

public String[][] getTemplateElementArray ()

return a String[][] objects

Returns
  • String array

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

public ArrayList getTemplateElementList ()

Gets the template elements as an ArrayList

Returns
  • template elements as an ArrayList

Protected Methods

protected boolean isElementVisible ()