Class AbstractExpressionTransform

    • Field Detail

      • exprOb

        protected ExpressionObject exprOb
        A reference to the expression object being transformed
    • Constructor Detail

      • AbstractExpressionTransform

        public AbstractExpressionTransform()
    • Method Detail

      • getSupportedBeanType

        public java.lang.Class getSupportedBeanType()
        function that returns an instance of Class defining this implementation.
        Specified by:
        getSupportedBeanType in interface Transform
        Returns:
        Class instance of this class
      • transform

        public void transform​(Transformable data,
                              MarkupOutput transOut)
                       throws java.lang.ClassCastException
        This implementation of the Transform interface method stores the passed expression object in the member variable, then calls the doTransform(com.microstrategy.web.beans.MarkupOutput) method.
        Specified by:
        transform in interface Transform
        Parameters:
        data - an object to transform. It must be of WebExpression type or ClassCastExcetption will be thrown
        transOut - the MarkupOutput object where the transform result will be added.
        Throws:
        java.lang.ClassCastException - if data is of the wrong type.
      • doTransform

        protected abstract void doTransform​(MarkupOutput transOut)
        Override this method (not the transform method)to do the real transform job
        Parameters:
        transOut - where to write output
      • getExpressionParts

        protected ExpressionParts getExpressionParts​(WebNode node)
        Creates and populates (@link ExpressionParts object for a specified operator node.
        Parameters:
        node - a node used to populate expression parts object
        Returns:
        expression parts collection
      • getExpressionStr

        protected java.lang.String getExpressionStr​(WebNode node)
        Builds a user-friendly string representation of an expression represented by the (@link node}.
        Parameters:
        node - an operator node
        Returns:
        a user-friendly string representation of an expression represented by the (@link node}.
      • useMathOperators

        public boolean useMathOperators()
        Returns true if the short (mathematical) form of comparison operators shall be used instead of long form. For example the ">" operator will be used instead of "grater" word.
        Returns:
        true if the short (mathematical) form of comparison operators shall be used instead of long form.
      • setUseMathOperators

        public void setUseMathOperators​(boolean val)
        Sets the flag indicating that the short (mathematical) form of comparison operators shall be used instead of long form.
        Parameters:
        val - the flag value
      • showDynamicDatesAsStatic

        public boolean showDynamicDatesAsStatic()
        Returns true if the dynamic form of dynamic dates in the expression shall be used instead of the static form.
        Returns:
        true if dynamic dates will be shown as dynamic, false if they are shown as static.
        Since:
        MicroStrategy Web 8.0.2
      • setShowDynamicDatesAsStatic

        public void setShowDynamicDatesAsStatic​(boolean val)
        Sets the flag that indicates whether dynamic dates should be shown as dynamic or static.
        Parameters:
        val - The flag value.
        Since:
        MicroStrategy Web 8.0.2