Package com.microstrategy.web.objects
Interface FilterDetailsFormatting
-
public interface FilterDetailsFormattingThis interface governs filter detail formatting properties.- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static intALWAYSAlways shown/applied.static intCLEARClears the formatting attribute.static charDELIMITERstatic java.lang.StringDELIMITER_STRstatic intFALSECondition is false.static java.lang.StringKEY_EXPAND_SHORTCUT_FILTERSstatic java.lang.StringKEY_INCLUDE_FORM_NAMES_IN_AQ_CONDITIONSstatic java.lang.StringKEY_LOGICAL_OPERATOR_BETWEEN_CONDITIONSstatic java.lang.StringKEY_NEWLINE_ATTR_NAMEstatic java.lang.StringKEY_NEWLINE_BETWEEN_CONDITIONSstatic java.lang.StringKEY_NEWLINE_BETWEEN_ELEMENTSstatic java.lang.StringKEY_OPERATOR_NAME_OR_SYMBOLstatic java.lang.StringKEY_PARENTHESES_AROUND_CONDITIONSstatic java.lang.StringKEY_SHOW_ATTR_NAME_FOR_ELEMENT_PROMPTSstatic java.lang.StringKEY_SHOW_ATTR_NAME_FOR_IN_LISTstatic java.lang.StringKEY_TRIM_ELEMENTSstatic java.lang.StringKEY_USE_DELIMITERS_AROUND_METADATA_OBJECT_NAMESstatic intMODE_DELIMITERS_AROUND_METADATA_OBJECT_NAMES_FOR_SPECIAL_CHARS_ONLYMetadata object names are only delimited if the name contains special characters.static intMODE_EXPAND_SHORTCUT_FILTERS_SHOW_NAME_AND_EXPANDShows both the name and expansion.static intMODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_AND_ONLYDisplay logical AND operators only.static intMODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_OR_ONLYDisplay logical OR operators only.static intMODE_NEWLINE_BETWEEN_CONDITIONS_FOR_DIFFERENT_LOGICAL_OP_NODES_ONLYNewlines are inserted between conditions for different logical operator nodes only.static intMODE_OPERATOR_DISPLAY_NAMEOperators are displayed with their names.static intMODE_OPERATOR_DISPLAY_SYMBOLOperators are displayed using symbols.static intMODE_PARENTHESES_AROUND_CONDITIONS_FOR_SAME_LOGICAL_OP_CHILDREN_ONLYIndicates parentheses are enclosed around conditions that are children of the same logical operator node only.static intNEVERNever shown/applied.static intONCEShown/applied once.static intREPEATEDItem is repeated.static intTRUECondition true.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdelimitersAroundMetadataObjectNames()When to use delimiters around metadata object names.intexpandShortcutFilters()When to expand shortcut filters.intincludeFormNamesInAQConditions()Whether to include form names in attribute qualification conditions.intlogicalOperatorBetweenConditions()When to display logical operators.intnewlineAttrName()Whether there is a newline after the Attr name.intnewlineBetweenConditions()When newlines are inserted between conditions.intnewlineBetweenElements()Default isFALSE.intoperatorDisplay()Describes how operators are displayed, i.e. as symbols or names.intparenthesesAroundConditions()When parentheses are displayed around conditions.voidset(java.lang.String key, java.lang.String value)Generic approach to setting a value corresponding to a key instead of using the specific setter methodvoidsetDelimitersAroundMetadataObjectNames(int delimiterCondition)Governs when to use delimiters around metadata object names.voidsetExpandShortcutFilters(int mode)Governs when to expand shortcut filters.voidsetIncludeFormNamesInAttrQualificationConditions(int includeFormNames)Governs whether to include form names in attribute qualification conditions.voidsetLogicalOperatorBetweenConditions(int mode)Governs when to display logical operators.voidsetNewlineAttrName(int mode)Governs whether there is a newline after the Attr name.voidsetNewlineBetweenConditions(int mode)Governs when newlines are inserted between conditions.voidsetNewlineBetweenElements(int mode)Governs whether there is a newline between elements.voidsetOperatorDisplay(int mode)Governs how operators are displayed, i.e. as symbols or names.voidsetParenthesesAroundConditions(int mode)This governs usage of parentheses around conditions.voidsetShowAttrNameForElementPrompts(int mode)Whether to show Attr name for Attr element prompts according to specified argument.voidsetShowAttrNameForInList(int mode)Whether to show Attr name for in list conditions according to specified argument.voidsetTrimElements(int mode)Governs whether whitespaces are trimmed from elements.intshowAttrNameForElementPrompts()Whether to show Attr element names for Attr element prompts.intshowAttrNameForInList()Whether to show Attr names for list conditions.inttrimElements()Whether whitespaces are trimmed from elements.
-
-
-
Field Detail
-
DELIMITER
static final char DELIMITER
- See Also:
- Constant Field Values
-
DELIMITER_STR
static final java.lang.String DELIMITER_STR
-
CLEAR
static final int CLEAR
Clears the formatting attribute. If this is aRWUnit, then the actual format setting will be inherited from the underlying document. If this is a document format, it will be inherited from the project.- See Also:
- Constant Field Values
-
REPEATED
static final int REPEATED
Item is repeated. Value = 2.- See Also:
- Constant Field Values
-
NEVER
static final int NEVER
Never shown/applied. Value = 0.- See Also:
- Constant Field Values
-
ALWAYS
static final int ALWAYS
Always shown/applied. Value = 1.- See Also:
- Constant Field Values
-
ONCE
static final int ONCE
Shown/applied once. Value = 1.- See Also:
- Constant Field Values
-
FALSE
static final int FALSE
Condition is false. Value = 0.- See Also:
- Constant Field Values
-
TRUE
static final int TRUE
Condition true. Value = 1.- See Also:
- Constant Field Values
-
MODE_PARENTHESES_AROUND_CONDITIONS_FOR_SAME_LOGICAL_OP_CHILDREN_ONLY
static final int MODE_PARENTHESES_AROUND_CONDITIONS_FOR_SAME_LOGICAL_OP_CHILDREN_ONLY
Indicates parentheses are enclosed around conditions that are children of the same logical operator node only. Value = 2.- See Also:
- Constant Field Values
-
MODE_NEWLINE_BETWEEN_CONDITIONS_FOR_DIFFERENT_LOGICAL_OP_NODES_ONLY
static final int MODE_NEWLINE_BETWEEN_CONDITIONS_FOR_DIFFERENT_LOGICAL_OP_NODES_ONLY
Newlines are inserted between conditions for different logical operator nodes only. Value = 2.- See Also:
- Constant Field Values
-
MODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_AND_ONLY
static final int MODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_AND_ONLY
Display logical AND operators only. Value = 2.- See Also:
- Constant Field Values
-
MODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_OR_ONLY
static final int MODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_OR_ONLY
Display logical OR operators only. Value = 3.- See Also:
- Constant Field Values
-
MODE_EXPAND_SHORTCUT_FILTERS_SHOW_NAME_AND_EXPAND
static final int MODE_EXPAND_SHORTCUT_FILTERS_SHOW_NAME_AND_EXPAND
Shows both the name and expansion.- See Also:
- Constant Field Values
-
MODE_DELIMITERS_AROUND_METADATA_OBJECT_NAMES_FOR_SPECIAL_CHARS_ONLY
static final int MODE_DELIMITERS_AROUND_METADATA_OBJECT_NAMES_FOR_SPECIAL_CHARS_ONLY
Metadata object names are only delimited if the name contains special characters.- See Also:
- Constant Field Values
-
MODE_OPERATOR_DISPLAY_SYMBOL
static final int MODE_OPERATOR_DISPLAY_SYMBOL
Operators are displayed using symbols.- See Also:
- Constant Field Values
-
MODE_OPERATOR_DISPLAY_NAME
static final int MODE_OPERATOR_DISPLAY_NAME
Operators are displayed with their names.- See Also:
- Constant Field Values
-
KEY_SHOW_ATTR_NAME_FOR_IN_LIST
static final java.lang.String KEY_SHOW_ATTR_NAME_FOR_IN_LIST
- See Also:
- Constant Field Values
-
KEY_SHOW_ATTR_NAME_FOR_ELEMENT_PROMPTS
static final java.lang.String KEY_SHOW_ATTR_NAME_FOR_ELEMENT_PROMPTS
- See Also:
- Constant Field Values
-
KEY_NEWLINE_ATTR_NAME
static final java.lang.String KEY_NEWLINE_ATTR_NAME
- See Also:
- Constant Field Values
-
KEY_NEWLINE_BETWEEN_ELEMENTS
static final java.lang.String KEY_NEWLINE_BETWEEN_ELEMENTS
- See Also:
- Constant Field Values
-
KEY_TRIM_ELEMENTS
static final java.lang.String KEY_TRIM_ELEMENTS
- See Also:
- Constant Field Values
-
KEY_OPERATOR_NAME_OR_SYMBOL
static final java.lang.String KEY_OPERATOR_NAME_OR_SYMBOL
- See Also:
- Constant Field Values
-
KEY_INCLUDE_FORM_NAMES_IN_AQ_CONDITIONS
static final java.lang.String KEY_INCLUDE_FORM_NAMES_IN_AQ_CONDITIONS
- See Also:
- Constant Field Values
-
KEY_PARENTHESES_AROUND_CONDITIONS
static final java.lang.String KEY_PARENTHESES_AROUND_CONDITIONS
- See Also:
- Constant Field Values
-
KEY_NEWLINE_BETWEEN_CONDITIONS
static final java.lang.String KEY_NEWLINE_BETWEEN_CONDITIONS
- See Also:
- Constant Field Values
-
KEY_LOGICAL_OPERATOR_BETWEEN_CONDITIONS
static final java.lang.String KEY_LOGICAL_OPERATOR_BETWEEN_CONDITIONS
- See Also:
- Constant Field Values
-
KEY_EXPAND_SHORTCUT_FILTERS
static final java.lang.String KEY_EXPAND_SHORTCUT_FILTERS
- See Also:
- Constant Field Values
-
KEY_USE_DELIMITERS_AROUND_METADATA_OBJECT_NAMES
static final java.lang.String KEY_USE_DELIMITERS_AROUND_METADATA_OBJECT_NAMES
- See Also:
- Constant Field Values
-
-
Method Detail
-
set
void set(java.lang.String key, java.lang.String value)Generic approach to setting a value corresponding to a key instead of using the specific setter method- Parameters:
key- a name from the list enumerated on this interfacevalue- value corresponding to the key
-
showAttrNameForInList
int showAttrNameForInList()
Whether to show Attr names for list conditions.
-
setShowAttrNameForInList
void setShowAttrNameForInList(int mode)
Whether to show Attr name for in list conditions according to specified argument.
-
showAttrNameForElementPrompts
int showAttrNameForElementPrompts()
Whether to show Attr element names for Attr element prompts.
-
setShowAttrNameForElementPrompts
void setShowAttrNameForElementPrompts(int mode)
Whether to show Attr name for Attr element prompts according to specified argument.
-
newlineAttrName
int newlineAttrName()
Whether there is a newline after the Attr name. Default isFALSE.
-
setNewlineAttrName
void setNewlineAttrName(int mode)
Governs whether there is a newline after the Attr name.
-
newlineBetweenElements
int newlineBetweenElements()
Default isFALSE.
-
setNewlineBetweenElements
void setNewlineBetweenElements(int mode)
Governs whether there is a newline between elements.
-
trimElements
int trimElements()
Whether whitespaces are trimmed from elements.
-
setTrimElements
void setTrimElements(int mode)
Governs whether whitespaces are trimmed from elements.
-
operatorDisplay
int operatorDisplay()
Describes how operators are displayed, i.e. as symbols or names.- Returns:
- options:
MODE_OPERATOR_DISPLAY_SYMBOL,MODE_OPERATOR_DISPLAY_NAME,CLEAR.
-
setOperatorDisplay
void setOperatorDisplay(int mode)
Governs how operators are displayed, i.e. as symbols or names.- Parameters:
mode- options:MODE_OPERATOR_DISPLAY_SYMBOL,MODE_OPERATOR_DISPLAY_NAME,CLEAR.
-
includeFormNamesInAQConditions
int includeFormNamesInAQConditions()
Whether to include form names in attribute qualification conditions.
-
setIncludeFormNamesInAttrQualificationConditions
void setIncludeFormNamesInAttrQualificationConditions(int includeFormNames)
Governs whether to include form names in attribute qualification conditions.
-
parenthesesAroundConditions
int parenthesesAroundConditions()
When parentheses are displayed around conditions.- Returns:
- options:
NEVER,ALWAYS,MODE_PARENTHESES_AROUND_CONDITIONS_FOR_SAME_LOGICAL_OP_CHILDREN_ONLY,CLEAR.
-
setParenthesesAroundConditions
void setParenthesesAroundConditions(int mode)
This governs usage of parentheses around conditions.- Parameters:
mode- options:NEVER,ALWAYS,MODE_PARENTHESES_AROUND_CONDITIONS_FOR_SAME_LOGICAL_OP_CHILDREN_ONLY.
-
newlineBetweenConditions
int newlineBetweenConditions()
When newlines are inserted between conditions.- Returns:
- options:
NEVER,ALWAYS,MODE_NEWLINE_BETWEEN_CONDITIONS_FOR_DIFFERENT_LOGICAL_OP_NODES_ONLY,CLEAR.
-
setNewlineBetweenConditions
void setNewlineBetweenConditions(int mode)
Governs when newlines are inserted between conditions.- Parameters:
mode- options:NEVER,ALWAYS,MODE_NEWLINE_BETWEEN_CONDITIONS_FOR_DIFFERENT_LOGICAL_OP_NODES_ONLY.
-
logicalOperatorBetweenConditions
int logicalOperatorBetweenConditions()
When to display logical operators.
-
setLogicalOperatorBetweenConditions
void setLogicalOperatorBetweenConditions(int mode)
Governs when to display logical operators.- Parameters:
mode- options:NEVER,ALWAYS,MODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_AND_ONLY,MODE_LOGICAL_OPERATOR_BETWEEN_CONDITIONS_OR_ONLY,CLEAR.
-
expandShortcutFilters
int expandShortcutFilters()
When to expand shortcut filters.- Returns:
- options:
TRUE,FALSE,MODE_EXPAND_SHORTCUT_FILTERS_SHOW_NAME_AND_EXPAND,CLEAR.
-
setExpandShortcutFilters
void setExpandShortcutFilters(int mode)
Governs when to expand shortcut filters.- Parameters:
mode- options:TRUE,FALSE,MODE_EXPAND_SHORTCUT_FILTERS_SHOW_NAME_AND_EXPAND,CLEAR.
-
delimitersAroundMetadataObjectNames
int delimitersAroundMetadataObjectNames()
When to use delimiters around metadata object names.- Returns:
- options:
NEVER,ALWAYS,MODE_DELIMITERS_AROUND_METADATA_OBJECT_NAMES_FOR_SPECIAL_CHARS_ONLY,CLEAR.
-
setDelimitersAroundMetadataObjectNames
void setDelimitersAroundMetadataObjectNames(int delimiterCondition)
Governs when to use delimiters around metadata object names.- Parameters:
delimiterCondition- options:NEVER,ALWAYS,MODE_DELIMITERS_AROUND_METADATA_OBJECT_NAMES_FOR_SPECIAL_CHARS_ONLY,CLEAR.
-
-