java.lang.Object | |
↳ | com.microstrategy.web.transform.ExpressionStringsImpl |
![]() |
A helper class that builds a collection of expression parts that can be used to build expression GUI. This collection contains part name - part value pairs.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ExpressionStringsImpl(ExpressionObject pOb)
Constructs expression parts object for a specified expression object.
| |||||||||||
ExpressionStringsImpl(ExpressionObject pOb, Locale locale)
Constructs expression parts object for a specified expression object and a given locale
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ExpressionStringsImpl(ExpressionStringsImpl parent)
This constructor is used when a child
ExpressionParts object
is used to build subexpression string. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
buildExpressionParts(WebNode node)
Builds expression parts collection for a specified expression node.
| ||||||||||
String |
getConstNodeVal(WebNode node)
A helper method that extracts value from the constant and time nodes.
| ||||||||||
String |
getExpressionStr()
Builds and returns user-friendly expression string from the expression
parts
| ||||||||||
String |
getPart(String name)
Returns specified expresson part or null if the part does not exist.
| ||||||||||
boolean |
hasPart(String name)
Returns true if the collection contains part with specified name
| ||||||||||
void | setDataSets(RWDataSets value) | ||||||||||
void |
setPart(String name, String value)
Sets specified part value
| ||||||||||
void | setShowDynamicDatesAsStatic(boolean val) | ||||||||||
void | setUseMathOperators(boolean val) | ||||||||||
boolean | showDynamicDatesAsStatic() | ||||||||||
boolean | useMathOperators() |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addMrpPrefix(WebOperatorNode node)
A helper method used to add rank/percent prefix to the left operand part
| ||||||||||
void |
buildAndOrOperatorParts(WebOperatorNode node, String operatorName)
A helper method used to build expression parts for infix operators
| ||||||||||
void |
buildBetweenOperatorParts(WebOperatorNode node, String operatorName)
A helper method used to build expression parts for BETWEEN operators
| ||||||||||
void | buildBreakByPart(WebOperatorNode node) | ||||||||||
void | buildDescendantsParts(WebOperatorNode node) | ||||||||||
String | buildDimtyStr(WebOperatorNode node) | ||||||||||
void |
buildExprParts(WebOperatorNode node)
A helper method called from the {link buildExpressionParts} to build
expression parts for all expression types excluding rank and percent metric expressions.
| ||||||||||
void |
buildFormShortcutParts(WebFormShortcutNode node)
A helper method used to build expression parts (left operand and attribute form)
for the form shortcut node
| ||||||||||
void |
buildFunction(WebOperatorNode node, String functionName)
A helper method used to build a tuple string representation
| ||||||||||
void |
buildInOperatorParts(WebOperatorNode node, String operatorName)
A helper method used to build expression parts for IN operators
| ||||||||||
void |
buildInfixOperatorParts(WebOperatorNode node, String operatorName)
A helper method used to build expression parts for infix operators
| ||||||||||
void |
buildLeftOperandFromOperator(WebOperatorNode node)
A helper method called from the
buildLeftOperandParts(WebOperatorNode) to build
left operand parts in the case the left operand is an operator. | ||||||||||
void |
buildLeftOperandParts(WebOperatorNode node)
A helper method used to build left operand parts
| ||||||||||
void |
buildMrpParts(WebOperatorNode node)
A helper method called from the
buildExpressionParts(WebNode) to build
expression parts for rank and percent metric expressions. | ||||||||||
void |
buildOutputLevelPart(WebOperatorNode node)
A helper method that builds and adds to the parts collection a dimensionality expression part
| ||||||||||
void |
buildPostfixOperatorParts(WebOperatorNode node, String operatorName)
A helper method used to build expression parts for postfix operators
| ||||||||||
void |
buildPrefixOperatorParts(WebOperatorNode node, String operatorName)
A helper method used to build expression parts for prefix operators
| ||||||||||
String |
getMessageStr(int key, String param)
A helper method that obtains a proper string from the resource bundle
and replaces the "##" substring in it with the param value
| ||||||||||
String |
getMessageStr(int key)
A helper method that obtains a proper string from the resource bundle
| ||||||||||
String |
getNodeStr(WebNode node)
A helper method used to build string representation of expression sub-nodes.
| ||||||||||
String |
getTupleStr(WebOperatorNode node)
A helper method used to build a tuple string representation
| ||||||||||
void |
logWarning(String message)
A helper method that logs warnings
| ||||||||||
ExpressionStringsImpl |
newExpressionParts(WebNode node)
A helper factory method that creates new
ExpressionParts
instances for the getNodeStr(WebNode) method. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs expression parts object for a specified expression object.
Constructs expression parts object for a specified expression object and a given locale
This constructor is used when a child ExpressionParts
object
is used to build subexpression string.
parent | a parent ExpressionParts objects |
---|
Builds expression parts collection for a specified expression node.
node | expression node |
---|
A helper method that extracts value from the constant and time nodes. It also wraps in quotes string and time constant values.
Builds and returns user-friendly expression string from the expression parts
Returns specified expresson part or null if the part does not exist.
name | a part name |
---|
Returns true if the collection contains part with specified name
name | a part name |
---|
Sets specified part value
name | a part name |
---|---|
value | a part value |
A helper method used to add rank/percent prefix to the left operand part
node | an expression node |
---|
A helper method used to build expression parts for infix operators
node | operator node |
---|---|
operatorName | an operator name like "Grater then" or "+" and so on. |
A helper method used to build expression parts for BETWEEN operators
node | operator node |
---|---|
operatorName | an operator name ("between" or "not between"). |
A helper method called from the {link buildExpressionParts} to build expression parts for all expression types excluding rank and percent metric expressions.
node | expression node |
---|
A helper method used to build expression parts (left operand and attribute form) for the form shortcut node
node | a for shortcut node |
---|
A helper method used to build a tuple string representation
node | a sub-node representing a tuple |
---|
A helper method used to build expression parts for IN operators
node | operator node |
---|---|
operatorName | an operator name ("in" or "not in"). |
A helper method used to build expression parts for infix operators
node | operator node |
---|---|
operatorName | an operator name like "Grater then" or "+" and so on. |
A helper method called from the buildLeftOperandParts(WebOperatorNode)
to build
left operand parts in the case the left operand is an operator.
node | a sub-node representing left operand |
---|
A helper method used to build left operand parts
node | an expression node |
---|
A helper method called from the buildExpressionParts(WebNode)
to build
expression parts for rank and percent metric expressions.
node | expression node |
---|
A helper method that builds and adds to the parts collection a dimensionality expression part
node | an expression node |
---|
A helper method used to build expression parts for postfix operators
node | operator node |
---|---|
operatorName | an operator name like "is null" and so on. |
A helper method used to build expression parts for prefix operators
node | operator node |
---|---|
operatorName | an operator name like "Not" or "-" and so on. |
A helper method that obtains a proper string from the resource bundle and replaces the "##" substring in it with the param value
key | a message key |
---|---|
param | a string parameter |
A helper method that obtains a proper string from the resource bundle
key | a message key |
---|
A helper method used to build string representation of expression sub-nodes.
Internally this method creates another ExpressionParts
object
callse it's buildExpressionParts to build sub-node's parts then calls
getExpressionStr method. This process can recurcively propagate down
expression tree.
node | an expression sub-node |
---|
A helper method used to build a tuple string representation
node | a sub-node representing a tuple |
---|
A helper method that logs warnings
A helper factory method that creates new ExpressionParts
instances for the getNodeStr(WebNode)
method. This implementation creates
instancess of the ExpressionPartsImpl
class. Override this method
to use custom ExpressionParts objects