Interface ExpressionStrings

  • All Known Subinterfaces:
    ExpressionParts
    All Known Implementing Classes:
    ExpressionPartsImpl, ExpressionStringsImpl

    public interface ExpressionStrings
    This interface represents a helper object that builds a collection of expression parts that can be used to build expression GUI. This collection contains part name - part value pairs. This interface can also be used to build entire user friendly expression string from the expression parts.
    Since:
    MicroStrategy Web 9.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void buildExpressionParts​(WebNode node)
      Builds expression parts collection for a specified node
      java.lang.String getConstNodeVal​(WebNode node)  
      java.lang.String getExpressionStr()
      Builds and returns user-friendly expression string from the expression parts
      java.lang.String getPart​(java.lang.String name)
      Returns specified expresson part or null if the part does not exist.
      boolean hasPart​(java.lang.String name)
      Returns true if the collection contains part with specified name
      void setDataSets​(RWDataSets value)  
      void setPart​(java.lang.String name, java.lang.String value)
      Sets specified part value
    • Field Detail

      • PART_EXPRESSION

        static final java.lang.String PART_EXPRESSION
        Expression part neame constant representing entire expression string. This constant is used for expression types for which we don't support splitting expression in parts. In this case the parts collection will contain only one part representing entire expression.
        See Also:
        Constant Field Values
      • PART_OPERATOR

        static final java.lang.String PART_OPERATOR
        Expression part name constant representing expression operator
        See Also:
        Constant Field Values
      • PART_LEFT_OPERAND

        static final java.lang.String PART_LEFT_OPERAND
        Expression part name constant representing left operand
        See Also:
        Constant Field Values
      • PART_RIGHT_OPERAND

        static final java.lang.String PART_RIGHT_OPERAND
        Expression part name constant representing right operand
        See Also:
        Constant Field Values
      • PART_ATTR_FORM

        static final java.lang.String PART_ATTR_FORM
        Expression part name constant representing attribute form for the left operand
        See Also:
        Constant Field Values
      • PART_OUTPUT_LEVEL

        static final java.lang.String PART_OUTPUT_LEVEL
        Expression part name constant representing dimentionality
        See Also:
        Constant Field Values
      • PART_EMBEDDED_PROMPT

        static final java.lang.String PART_EMBEDDED_PROMPT
        See Also:
        Constant Field Values
      • PART_CANCELLED_PROMPT

        static final java.lang.String PART_CANCELLED_PROMPT
        See Also:
        Constant Field Values
    • Method Detail

      • buildExpressionParts

        void buildExpressionParts​(WebNode node)
        Builds expression parts collection for a specified node
        Parameters:
        node - an expression node
      • getPart

        java.lang.String getPart​(java.lang.String name)
        Returns specified expresson part or null if the part does not exist.
        Parameters:
        name - a part name
        Returns:
        a part value
      • setPart

        void setPart​(java.lang.String name,
                     java.lang.String value)
        Sets specified part value
        Parameters:
        name - a part name
        value - a part value
      • hasPart

        boolean hasPart​(java.lang.String name)
        Returns true if the collection contains part with specified name
        Parameters:
        name - a part name
        Returns:
        true if the collection contains part with specified name
      • getExpressionStr

        java.lang.String getExpressionStr()
        Builds and returns user-friendly expression string from the expression parts
        Returns:
        name a part name
      • setDataSets

        void setDataSets​(RWDataSets value)
      • getConstNodeVal

        java.lang.String getConstNodeVal​(WebNode node)