Class ExpressionFilterTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.app.transforms.AbstractExpressionTransform
-
- com.microstrategy.web.app.transforms.ExpressionFilterTransform
-
- All Implemented Interfaces:
ExpressionMessages
,Transform
public class ExpressionFilterTransform extends AbstractExpressionTransform
Creates consistent text for expressions- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description static int
FLAT
Render mode valuesstatic int
LINKS
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractExpressionTransform
exprOb
-
Fields inherited from interface com.microstrategy.web.app.transforms.ExpressionMessages
DM_DEFAULT_LVL, DM_PREF_BREAKBY, DM_PREF_EVALSET, DM_PREF_SETOF, DM_RPT_BASE_LVL, DM_RPT_LVL, DM_UNKNOWN_LVL, DM_WHERE, FN_APPLY_AGGREGATION, FN_APPLY_COMPARISON, FN_APPLY_LOGIC, FN_APPLY_RELATIVE, FN_APPLY_SYMPLE, MRP_BETWEEN, MRP_EQUAL, MRP_EXCL_HIGHEST, MRP_EXCL_LOWEST, MRP_HIGHEST, MRP_LOWEST, MRP_NOT_BETWEEN, MRP_NOT_EQUAL, MRP_PERCENT, MRP_PERCENT_TEMPLATE, MRP_RANK, MRP_RANK_TEMPLATE, OP_AND, OP_BEGINS_WITH, OP_BETWEEN, OP_CONTAINS, OP_DIVIDE, OP_ENDS_WITH, OP_EQUAL, OP_GREATER, OP_GREATER_EQUAL, OP_IN, OP_IN_LIST, OP_IS_NOT_NULL, OP_IS_NULL, OP_LESS, OP_LESS_EQUAL, OP_LIKE, OP_MINUS, OP_NOT, OP_NOT_BEGINS_WITH, OP_NOT_BETWEEN, OP_NOT_CONTAINS, OP_NOT_ENDS_WITH, OP_NOT_EQUAL, OP_NOT_IN, OP_NOT_IN_LIST, OP_NOT_LIKE, OP_OR, OP_PLUS, OP_TIMES
-
-
Constructor Summary
Constructors Constructor Description ExpressionFilterTransform()
Default no-args constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doTransform(MarkupOutput transOut)
this function checks transform type and triggers corresponding function, either render a flat or HTML linked expression.protected void
doTransform(WebNode node, MarkupOutput transOut)
this function checks transform type and triggers corresponding function, either render a flat or HTML linked expression.java.lang.String
getDescription()
this function returns class description only.protected ExpressionParts
newExpressionParts(WebNode node)
Creates a new instance ofExpressionParts
object.void
renderFlatExpression(MarkupOutput transOut, WebNode node)
this function constructs an HTML flat expression text.void
renderLinkedExpression(MarkupOutput transOut, WebNode node)
this function constructs an HTML linked expression text.void
renderSimpleExpression(MarkupOutput transOut, WebNode node)
this function constructs an HTML linked expression text.void
setCancelledPromptCSPAN(java.lang.String value)
void
setDataSests(RWDataSets value)
void
setDormantPromptStyle(java.lang.String style)
void
setDormantPromptTitle(java.lang.String title)
void
setEmbeddedFilterSeparator(java.lang.String value)
this function is intended to set separator character.void
setEmbeddedObjCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in embedded names.void
setEmbeddedPromptJS(java.lang.String value)
void
setExpandEmbeddedFilter(boolean value)
this function returns is used for setting name of CSPAN to be used in operator and right operand in expression text.void
setFormName(java.lang.String value)
function used for setting name of the form to be rendered.void
setLinkArg(java.lang.String value)
this function returns is used for setting argument name for link in expression text.void
setLinkCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in right operand in expression text.void
setLinkJS(java.lang.String value)
this function returns is used for setting javascript used for link in expression text.void
setOperatorCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in operator in expression text.void
setRenderMode(int mode)
this function is intended to set transform style, either flat or linked HTML.void
setSeparator(java.lang.String value)
this function is intended to set separator character.void
setTruncateText(boolean flag)
Changes flag value for either truncating condition text or not.void
setUnitDescCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in description in expression text.void
setValueCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in operator and right operand in expression text.void
setWhereClauseStr(java.lang.String value)
this function ris used for setting text for where clause..-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractExpressionTransform
getExpressionParts, getExpressionStr, getSupportedBeanType, setShowDynamicDatesAsStatic, setUseMathOperators, showDynamicDatesAsStatic, transform, useMathOperators
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports, supports
-
-
-
-
Field Detail
-
FLAT
public static final int FLAT
Render mode values- See Also:
- Constant Field Values
-
LINKS
public static final int LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
doTransform
protected void doTransform(MarkupOutput transOut)
this function checks transform type and triggers corresponding function, either render a flat or HTML linked expression. This function takes current active node and from there transform takes place- Specified by:
doTransform
in classAbstractExpressionTransform
- Parameters:
transOut
-MarkupOutput
instance that will be the output by this transform
-
doTransform
protected void doTransform(WebNode node, MarkupOutput transOut)
this function checks transform type and triggers corresponding function, either render a flat or HTML linked expression.- Parameters:
node
- node where transform will be applied to.transOut
-MarkupOutput
instance that will be the output by this transform
-
renderSimpleExpression
public void renderSimpleExpression(MarkupOutput transOut, WebNode node)
this function constructs an HTML linked expression text. It uses formal parameters for determining styles to be applied to text. These styles define HTML links and HTML output format.- Parameters:
node
- node where transform will be applied to.transOut
-MarkupOutput
instance that will be the output by this transform
-
renderLinkedExpression
public void renderLinkedExpression(MarkupOutput transOut, WebNode node)
this function constructs an HTML linked expression text. It uses formal parameters for determining styles to be applied to text. These styles define HTML links and HTML output format.- Parameters:
node
- node where transform will be applied to.transOut
-MarkupOutput
instance that will be the output by this transform
-
renderFlatExpression
public void renderFlatExpression(MarkupOutput transOut, WebNode node)
this function constructs an HTML flat expression text. It uses formal parameters for determining styles to be applied to text. These styles define HTML output format.- Parameters:
node
- node where transform will be applied to.transOut
-MarkupOutput
instance that will be the output by this transform
-
getDescription
public java.lang.String getDescription()
this function returns class description only.- Returns:
- String class description.
-
setLinkArg
public void setLinkArg(java.lang.String value)
this function returns is used for setting argument name for link in expression text.- Parameters:
value
- argument name for HTML link name.
-
setLinkJS
public void setLinkJS(java.lang.String value)
this function returns is used for setting javascript used for link in expression text. This will override the default javascript text.- Parameters:
value
- argument name for HTML link name.- Since:
- MicroStrategy Web 8.0.0
-
setWhereClauseStr
public void setWhereClauseStr(java.lang.String value)
this function ris used for setting text for where clause..- Parameters:
value
- where localized text
-
setLinkCSPAN
public void setLinkCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in right operand in expression text.- Parameters:
value
- CSPAN name for formatting right operand in expression text.
-
setEmbeddedObjCSPAN
public void setEmbeddedObjCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in embedded names.- Parameters:
value
- CSPAN name for formatting right operand in embedded names.
-
setValueCSPAN
public void setValueCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in operator and right operand in expression text.- Parameters:
value
- CSPAN name for formatting operator and right operand in expression text.
-
setFormName
public void setFormName(java.lang.String value)
function used for setting name of the form to be rendered.- Parameters:
value
- String
-
setOperatorCSPAN
public void setOperatorCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in operator in expression text.- Parameters:
value
- CSPAN name for formatting operator in expression text.
-
setUnitDescCSPAN
public void setUnitDescCSPAN(java.lang.String value)
this function returns is used for setting name of CSPAN to be used in description in expression text.- Parameters:
value
- CSPAN name for description in expression text.
-
setTruncateText
public void setTruncateText(boolean flag)
Changes flag value for either truncating condition text or not.- Parameters:
flag
- true for truncating text.
-
setSeparator
public void setSeparator(java.lang.String value)
this function is intended to set separator character. If not set, default character will be used.- Parameters:
value
- string to be used as separator.
-
setEmbeddedFilterSeparator
public void setEmbeddedFilterSeparator(java.lang.String value)
this function is intended to set separator character. If not set, default character will be used.- Parameters:
value
- string to be used as separator.
-
setRenderMode
public void setRenderMode(int mode)
this function is intended to set transform style, either flat or linked HTML. If not set, default flat value will be used.- Parameters:
mode
- transform style to be used.
-
setExpandEmbeddedFilter
public void setExpandEmbeddedFilter(boolean value)
this function returns is used for setting name of CSPAN to be used in operator and right operand in expression text.- Parameters:
value
-
-
setDormantPromptStyle
public void setDormantPromptStyle(java.lang.String style)
- Since:
- MicroStrategy Web 9.0.0
-
setDormantPromptTitle
public void setDormantPromptTitle(java.lang.String title)
- Since:
- MicroStrategy Web 9.0.0
-
setEmbeddedPromptJS
public void setEmbeddedPromptJS(java.lang.String value)
- Since:
- MicroStrategy Web 9.0.0
-
setCancelledPromptCSPAN
public void setCancelledPromptCSPAN(java.lang.String value)
- Since:
- MicroStrategy Web 9.0.0
-
setDataSests
public void setDataSests(RWDataSets value)
- Since:
- MicroStrategy Web 9.0.0
-
newExpressionParts
protected ExpressionParts newExpressionParts(WebNode node)
Description copied from class:AbstractExpressionTransform
Creates a new instance ofExpressionParts
object. This implementation creates an istance ofExpressionPartsImpl
object. Override this method if you wont to use a customExpressionParts
implementaion.- Overrides:
newExpressionParts
in classAbstractExpressionTransform
- Parameters:
node
- where to extract expression parts from- Returns:
- a new instance of
ExpressionParts
object. - Since:
- MicroStrategy Web 9.0.0
-
-