Class TemplateParser

  • Direct Known Subclasses:
    ThresholdsTemplateParser

    public class TemplateParser
    extends java.lang.Object
    This 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 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()