|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.Util
public class Util
Utility class for dataselectors containing methods to create Strings representations of a filter tree.
Field Summary | |
---|---|
static java.lang.String |
FILTER_ITEM_MAP_ENTRY
|
static int |
HTML
|
static java.lang.String |
HTML_BREAK
|
static java.lang.String |
HTML_LEFT_PARENTHESIS
|
static java.lang.String |
HTML_NBSP
|
static java.lang.String |
HTML_RIGHT_PARENTHESIS
|
static java.lang.String |
LOGICAL_CONDITION_MAP_ENTRY
|
static java.lang.String |
LOGICAL_NODE_MAP_ENTRY
|
static java.lang.String |
NESTING_MAP_ENTRY
|
static java.lang.String |
RB_KEY
The prefix used for resource properties associated with this class. |
static int |
TEXT
|
static java.lang.String |
TEXT_LEFT_PARENTHESIS
|
static java.lang.String |
TEXT_NEWLINE
|
static java.lang.String |
TEXT_RIGHT_PARENTHESIS
|
static java.lang.String |
TEXT_SPACE
|
static java.lang.String |
VIRTUAL_FILTER_ITEM_MAP_ENTRY
|
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static boolean |
containsInstance(java.util.List list,
java.lang.Object o)
|
static java.util.List |
getExpressionInfo(SimpleFilterLogicTreeInterface tree,
int outputType)
Returns a List of Maps. |
static java.util.List |
getExpressionInfo(SimpleFilterLogicTreeInterface tree,
int outputType,
java.util.Locale locale,
boolean virtualDisplay)
Returns a List of Maps. |
static java.util.List |
getExpressionInfo(SimpleFilterLogicTreeInterface tree,
java.lang.String space,
java.lang.String newline,
java.lang.String leftParen,
java.lang.String rightParen,
java.lang.String not,
java.lang.String andStr,
java.lang.String orStr,
boolean virtualDisplay)
Returns a List of Maps. |
static java.lang.String |
getExpressionString(SimpleFilterLogicTreeInterface tree,
int outputType)
Return an unformatted, unindented String representing the entire filter tree. |
static java.lang.String |
getExpressionString(SimpleFilterLogicTreeInterface tree,
int outputType,
java.util.Locale locale)
Return an unformatted, unindented String representing the entire filter tree. |
static java.lang.String |
getFormattedExpressionString(java.util.List expressionList,
int outputType,
int startSelection,
int endSelection)
Returns the indented, formatted (line breaks) String representing the filter tree. |
static java.lang.String |
getFormattedExpressionString(SimpleFilterLogicTreeInterface tree,
java.util.Locale locale,
int outputType,
int startSelection,
int endSelection)
Returns the indented, formatted (line breaks) String representing the filter tree. |
static int |
getIndexOfChildInstance(javax.swing.tree.TreeNode parent,
javax.swing.tree.TreeNode child)
|
static int |
indexOfInstance(java.util.List list,
java.lang.Object o)
|
Field Detail |
---|
public static final java.lang.String RB_KEY
public static java.lang.String HTML_NBSP
public static java.lang.String HTML_BREAK
public static java.lang.String HTML_LEFT_PARENTHESIS
public static java.lang.String HTML_RIGHT_PARENTHESIS
public static java.lang.String TEXT_SPACE
public static java.lang.String TEXT_NEWLINE
public static java.lang.String TEXT_LEFT_PARENTHESIS
public static java.lang.String TEXT_RIGHT_PARENTHESIS
public static final int HTML
public static final int TEXT
public static final java.lang.String FILTER_ITEM_MAP_ENTRY
public static final java.lang.String VIRTUAL_FILTER_ITEM_MAP_ENTRY
public static final java.lang.String LOGICAL_CONDITION_MAP_ENTRY
public static final java.lang.String NESTING_MAP_ENTRY
public static final java.lang.String LOGICAL_NODE_MAP_ENTRY
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.lang.String getFormattedExpressionString(SimpleFilterLogicTreeInterface tree, java.util.Locale locale, int outputType, int startSelection, int endSelection)
expressionList
- The List of Maps representing all the filter conditions and information about them.locale
- outputType
- Set to either Util.HTML or Util.TEXT. Used to write appropriate spaces.startSelection
- The start index of the contiguous selection in the filter list.endSelection
- The end index of the contiguous selection in the filter list.
public static java.lang.String getFormattedExpressionString(java.util.List expressionList, int outputType, int startSelection, int endSelection)
expressionList
- The List of Maps representing all the filter conditions and information about them.outputType
- Set to either Util.HTML or Util.TEXT. Used to write appropriate spaces.startSelection
- The start index of the contiguous selection in the filter list.endSelection
- The end index of the contiguous selection in the filter list.
public static java.lang.String getExpressionString(SimpleFilterLogicTreeInterface tree, int outputType, java.util.Locale locale)
tree
- The tree representing all the filter conditions and information about them.outputType
- Set to either Util.HTML or Util.TEXT. Used to write appropriate spaces.locale
- for getting localized versions of the "NOT" modifier and such
public static java.lang.String getExpressionString(SimpleFilterLogicTreeInterface tree, int outputType)
tree
- The tree representing all the filter conditions and information about them.outputType
- Set to either Util.HTML or Util.TEXT. Used to write appropriate spaces.
public static java.util.List getExpressionInfo(SimpleFilterLogicTreeInterface tree, int outputType, java.util.Locale locale, boolean virtualDisplay)
tree
- The tree representing all the filter conditions and information about them.outputType
- Set to either Util.HTML or Util.TEXT. Used to write appropriate spaces and newlines/breaks.locale
- for getting localized versions of the "NOT" modifier and suchvirtualDisplay
- a flag to indicate whether (TRUE) a virtual representation of the filter logic
should be constructed showing only the required groupings or (FALSE) a true representation of the
filter logic should be constructed showing the boolean precedence rules in effect.
public static java.util.List getExpressionInfo(SimpleFilterLogicTreeInterface tree, int outputType)
tree
- The tree representing all the filter conditions and information about them.outputType
- Set to either Util.HTML or Util.TEXT. Used to write appropriate spaces and newlines/breaks.
public static java.util.List getExpressionInfo(SimpleFilterLogicTreeInterface tree, java.lang.String space, java.lang.String newline, java.lang.String leftParen, java.lang.String rightParen, java.lang.String not, java.lang.String andStr, java.lang.String orStr, boolean virtualDisplay)
tree
- The tree representing all the filter conditions and information about them.space
- The string to use as a spacenewline
- The string to start a new lineleftParen
- The string to represent a left parenthesisrightParen
- The string to represent a right parenthesisnot
- The string to use to NOT a group of conditions
public static int getIndexOfChildInstance(javax.swing.tree.TreeNode parent, javax.swing.tree.TreeNode child)
common
- child
-
public static boolean containsInstance(java.util.List list, java.lang.Object o)
public static int indexOfInstance(java.util.List list, java.lang.Object o)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |