|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.DefaultAdvancedFilterModelAdapter
public class DefaultAdvancedFilterModelAdapter
The DefaultAdvancedFilterModelAdapter ideally will be a unified adapter that will work for both BusinessModel (build-time) and BusinessQuery (run-time) instances for both relational and OLAP data sources. For now, it acts as the base class for any of the filter models for the advanced dialogs.
Field Summary | |
---|---|
protected com.sas.iquery.metadata.business.BusinessModel |
_businessModel
The BusinessModel this adapter will use as the source of the filter model. |
protected com.sas.iquery.metadata.business.BusinessQuery |
_businessQuery
The BusinessQuery that (if it exists) will give additional information for the filter model. |
protected com.sas.swing.dataselectors.editors.ExpressionValueEditorInterface |
_expressionValueEditor
The editor used to create/modify/assign expressions for use as values in filters. |
protected java.lang.String |
_filterDescription
The description to assign the final filter. |
protected com.sas.swing.dataselectors.editors.FilterItemEditorInterface |
_filterItemEditor
The editor used to create/modify/assign expressions for use as items in filters. |
protected java.lang.String |
_filterLabel
The label to assign the final filter. |
protected FilterObjectFactoryInterface |
_filterObjectFactory
The factory object used to convert between native objects and filter model objects. |
protected com.sas.swing.dataselectors.editors.QualifiersEditorInterface |
_filterQualifierEditor
The editor used to create/modify/assign qualifiers that further subset data. |
protected java.lang.Object |
_initialFilterObject
The initial state of the filter being created/modified. |
protected java.util.Locale |
_locale
The current Locale in use by the filter model. |
protected SimpleFilterLogicTreeInterface |
_logicTree
The filter selection model. |
protected boolean |
_newFilter
A flag to specify whether the model is creating a new filter or modifying an existing one. |
protected java.util.Map |
_promptMap
The prompt map holds all prompts found in the BusinessModel keyed by their names. |
protected com.sas.swing.dataselectors.editors.PromptValueEditorInterface |
_promptValueEditor
The editor used to create/modify/assign prompts for use as values in filters. |
protected java.lang.Object |
_revertToFilterObject
The filter object used to restore the selection model to the state it was in when editing the filter began. |
protected java.util.Map |
_systemVariableMap
The system variable map holds all system variable prompts found in the BusinessModel keyed by their names. |
protected int |
environment
|
protected java.lang.Object |
rootFilterObject
The last root filter object resulting from a call to commitChanges. |
Fields inherited from class com.sas.dataselectors.filters.SimpleFilterListEditorModelBase |
---|
_adapter, _filterLogicList, _selectionIndex, _selectionModel |
Constructor Summary | |
---|---|
DefaultAdvancedFilterModelAdapter()
Constructs a new adapter with default properties. |
|
DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel)
Constructs a new adapter based on the given BusinessModel object. |
|
DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel,
java.lang.Object initialFilter)
Constructs a new adapter using the given BusinessModel as the data source. |
|
DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
Constructs a new adapter from the given model. |
|
DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
java.lang.Object initialFilter)
Constructs a new adapter from the given model. |
|
DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
java.lang.Object initialFilter,
int environment)
Constructs a new adapter from the given model. |
|
DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
java.lang.Object initialFilter,
java.util.Locale locale)
Constructs a new adapter from the given model. |
Method Summary | |
---|---|
boolean |
addSelection(FilterLogicTestNodeInterface value)
adds a new selection to the end of the FilterLogicList (cursor position unchanged after an add) |
FilterValueInterface |
applyExpressionValueEditorChanges(FilterLogicTestNodeInterface testNode,
int valueIndex)
Applies any changes made by the user in the expression value editor to the current selection model. |
protected void |
applyFilterDescription()
Applies the filter description to the native filter model. |
FilterItemInterface |
applyFilterItemEditorChanges(FilterLogicTestNodeInterface testNode)
Processes the data from the filter item editor and updates the given test node with the results. |
protected void |
applyFilterLabel()
Applies the desired label to the root filter object. |
FilterQualifierInterface |
applyFilterQualifierEditorChanges(FilterLogicTestNodeInterface testNode)
Applies any changes made by the user in the qualifier editor to the current selection model. |
FilterQualifierInterface |
applyFilterQualifierEditorChanges(FilterLogicTestNodeInterface testNode,
java.util.Map selectedQualifierMap)
Applies any changes made by the user in the qualifier editor to the current selection model. |
FilterValueInterface |
applyPromptValueEditorChanges(FilterLogicTestNodeInterface testNode,
int valueIndex)
Applies any changes made by the user in the prompt value editor to the current selection model. |
FilterValueInterface |
applyPromptValueEditorChanges(com.sas.swing.dataselectors.editors.PromptValueEditorInterface promptValueEditor,
FilterLogicTestNodeInterface testNode,
int valueIndex)
Applies any changes made by the user in the prompt value editor to the current selection model. |
void |
cancel()
Reverts the filter logic tree to the original state of the native filter model. |
void |
clear()
Clears the current filter logic but does not modify the native filter model. |
void |
clear(boolean commit)
Clears the current filter logic and optionally commits the change to the native filter model. |
boolean |
commitChanges()
Commit changes to the native filter model. |
protected FilterBaseModelData |
getBaseModel()
|
com.sas.iquery.metadata.business.BusinessModel |
getBusinessModel()
Returns the BusinessModel object used throughout the adapter. |
com.sas.iquery.metadata.business.BusinessQuery |
getBusinessQuery()
Returns the BusinessQuery object used throughout the adapter. |
int |
getEnvironment()
Returns the current operating environment, if defined, otherwise the environment is investigated and an appropriate value is returned. |
com.sas.swing.dataselectors.editors.ExpressionValueEditorInterface |
getExpressionValueEditor()
Returns the editor to use to edit an expression value. |
static com.sas.iquery.metadata.business.step.StepInterface |
getFilterableStep(com.sas.iquery.metadata.business.DataItem item)
Determines the appropriate step-model filter to get/set based on the given DataItem. |
java.lang.String |
getFilterDescription()
Returns the current description for the filter. |
protected AttributeTypeInterface |
getFilterItemAttributeType(FilterItemInterface item)
|
com.sas.swing.dataselectors.editors.FilterItemEditorInterface |
getFilterItemEditor()
Returns the editor to use to edit a filter item. |
protected int |
getFilterItemSQLType(FilterItemInterface item)
|
java.lang.String |
getFilterLabel()
Gets the current desired label or the label of the root filter object if it has not been changed. |
FilterObjectFactoryInterface |
getFilterObjectFactory()
Returns the filter object factory used by the adapter to convert between native and filter model objects. |
com.sas.swing.dataselectors.editors.QualifiersEditorInterface |
getFilterQualifierEditor()
Returns the editor to use to edit a filter qualifier. |
protected java.lang.String |
getFilterQualifierSkipID(java.lang.Object nativeItem)
Returns the identifier for the given native object that the filter qualifier editor will expect to receive to properly display and function. |
java.util.Locale |
getLocale()
Returns the Locale currently used throughout the filter model. |
int |
getMaxOutputObservations()
Returns the maximum number of values returned by the query for a DataItem when gathering a the list of values a user may choose from to complete a filter expression. |
java.util.List |
getPersistentFilterList()
|
FilterValueInterface |
getPromptedValueByName(java.lang.String name)
Returns the FilterValueInterface wrapper that contains the prompt object matching the specified name. |
java.util.List |
getPromptRangeValueList(java.lang.Object item)
Returns a List containing all known range prompts filter values. |
com.sas.swing.dataselectors.editors.PromptValueEditorInterface |
getPromptValueEditor()
Returns the editor to use to edit a prompt value. |
java.util.List |
getPromptValueList(java.lang.Object item)
Returns a List containing all known prompt filter values valid for the specified item. |
java.util.Map |
getPromptValueMap()
Provides a Map with all available Prompts keyed to their names. |
java.lang.Object |
getRootFilterObject()
Returns the root filter object in the native model. |
SimpleFilterLogicTreeInterface |
getSelectionTree()
Returns the filter logic tree that represents the overall filter selection. |
SimpleFilterLogicTreeInterface |
getSelectionTree(PersistentFilterInterface pFilter)
|
com.sas.swing.dataselectors.editors.PromptValueEditorInterface |
getSharedPromptSelector()
Returns the selector used to obtain a shared prompt definition. |
java.util.List |
getSystemVariableValueList(java.lang.Object item)
Returns a List of applicable system variable values. |
com.sas.storage.valueprovider.ValueProviderInterface |
getValueProvider(FilterLogicTestNodeInterface testNode,
int valueIndex)
Return the ValueProviderInterface object appropriate for the given test node and indicated value index. |
int |
isCascadable()
|
boolean |
isCascadingPrompts()
|
boolean |
isEditedExpressionValue(java.lang.Object value)
Returns TRUE if the given object represents an edited expression, FALSE otherwise. |
boolean |
isEnforcingPromptCascades()
|
protected boolean |
isFilterImportable(com.sas.iquery.metadata.business.FilterItem item)
|
protected boolean |
isFilterImportable(java.util.List testNodeList)
|
boolean |
isOLAP()
Returns TRUE if the native filter model is based on OLAP data, FALSE otherwise. |
boolean |
isPromptedRangeValue(java.lang.Object value)
Returns TRUE if the given object represents a prompted range value, FALSE otherwise. |
boolean |
isPromptedValue(java.lang.Object value)
Returns TRUE if the given object represents a prompted value, FALSE otherwise. |
static boolean |
isPromptMultipleSelection(com.sas.iquery.metadata.business.Prompt prompt)
|
boolean |
isQuotedValue(java.lang.Object value)
Returns TRUE if the given object represents a value that will be quoted during query generation. |
boolean |
isSystemVariableValue(java.lang.Object value)
Determine if the given object represents a system variable value. |
boolean |
isUserCreatedValue(java.lang.Object value)
Returns TRUE if the given object represents a value that was created by a user entering a String expression value in the filter selector. |
boolean |
isValidFilter(FilterLogicTestNodeInterface testNode)
Attempts to validate the filter represented by the given test node. |
protected boolean |
isValidPromptType(FilterItemInterface filterItem,
com.sas.datatypes.DataTypeInterface promptDataType)
|
protected void |
refreshPromptValueMap()
Examines the business model and constructs a map from all prompt objects found within based on their names. |
void |
removeSelection()
removes the current selection from the FilterLogicList (cursor position is undefined after remove) |
void |
setApplicationData(java.lang.Object data)
Used to store application specific data. |
void |
setBusinessModel(com.sas.iquery.metadata.business.BusinessModel model)
Sets the BusinessModel object used in various roles of the adapter. |
void |
setBusinessQuery(com.sas.iquery.metadata.business.BusinessQuery model)
Sets the BusinessQuery object used in various roles of the adapter. |
void |
setEnforcePromptCascades(boolean cascadePrompts)
|
void |
setEnvironment(int environment)
Sets the operating environment to the specified value. |
void |
setExpressionValueEditor(com.sas.swing.dataselectors.editors.ExpressionValueEditorInterface expressionValueEditor)
Sets the editor to use to edit an expression value. |
void |
setExpressionValueEditorInfo(FilterLogicTestNodeInterface testNode,
int valueIndex)
Prepares the expression value editor for use based on the values contained in the given test node. |
void |
setFilterDescription(java.lang.String value)
Sets the description to use if/when persisting this filter model. |
void |
setFilterItemEditor(com.sas.swing.dataselectors.editors.FilterItemEditorInterface filterItemEditor)
Sets the editor to use to edit a filter item. |
void |
setFilterItemEditorInfo(FilterLogicTestNodeInterface testNode)
Prepares the filter item editor for use based on the values contained in the given test node. |
void |
setFilterLabel(java.lang.String label)
Set the label the root filter object should have. |
void |
setFilterObjectFactory(FilterObjectFactoryInterface factory)
Sets the filter object factory that is to be used by the adapter to convert between native and filter model objects. |
void |
setFilterQualifierEditor(com.sas.swing.dataselectors.editors.QualifiersEditorInterface filterQualifierEditor)
Sets the editor to use to edit a filter qualifier. |
void |
setFilterQualifierEditorInfo(FilterLogicTestNodeInterface testNode)
Prepares the filter qualifier editor with values from the given test node. |
void |
setLocale(java.util.Locale locale)
Sets the Locale for the model. |
void |
setMaxOutputObservations(int max)
Sets the maximum number of distinct values to return for a DataItem whose properties allow filter values to be assigned from a list of possible values created from a query. |
void |
setModel(com.sas.iquery.metadata.business.BusinessModel businessModel)
Sets the model for this adapter. |
void |
setModel(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
Sets the model for this adapter. |
void |
setPromptValueEditor(com.sas.swing.dataselectors.editors.PromptValueEditorInterface promptValueEditor)
Sets the editor to use to edit a prompt value. |
void |
setPromptValueEditorInfo(FilterLogicTestNodeInterface testNode,
int valueIndex)
Prepares the prompt value editor for use based on the values contained in the given test node. |
void |
setPromptValueEditorInfo(FilterLogicTestNodeInterface testNode,
int valueIndex,
boolean isRangePrompt)
Prepares the PromptValueEditor to edit the current filter value based on the given FilterLogicTestNodeInterface. |
void |
setPromptValueEditorInfo(com.sas.swing.dataselectors.editors.PromptValueEditorInterface promptValueEditor,
FilterLogicTestNodeInterface testNode,
int valueIndex,
boolean isRangePrompt)
|
void |
setSelection(FilterLogicTestNodeInterface value)
Sets the selection model for the adapter. |
void |
setSelectionCursor(int index)
Move the model cursor to a new selection index. |
void |
setSharedPromptSelector(com.sas.swing.dataselectors.editors.PromptValueEditorInterface sharedPromptSelector)
Sets the selector used to obtain a shared prompt definition. |
Methods inherited from class com.sas.dataselectors.filters.SimpleFilterListEditorModelBase |
---|
getApplicationData, getChangableSelectionModel, getDataSource, getFilterLogicList, getSelection, getSelectionCount, getSelectionCursor, setAdapter |
Methods inherited from interface com.sas.dataselectors.filters.AdvancedFilterModelInterface |
---|
getFilterLogicList, getSelectionCount, getSelectionCursor |
Methods inherited from interface com.sas.dataselectors.filters.SimpleFilterDefinitionModelInterface |
---|
getApplicationData, getDataSource, getSelection |
Field Detail |
---|
protected com.sas.iquery.metadata.business.BusinessModel _businessModel
protected com.sas.iquery.metadata.business.BusinessQuery _businessQuery
protected java.lang.Object _initialFilterObject
protected SimpleFilterLogicTreeInterface _logicTree
protected FilterObjectFactoryInterface _filterObjectFactory
protected com.sas.swing.dataselectors.editors.PromptValueEditorInterface _promptValueEditor
protected com.sas.swing.dataselectors.editors.ExpressionValueEditorInterface _expressionValueEditor
protected com.sas.swing.dataselectors.editors.FilterItemEditorInterface _filterItemEditor
protected com.sas.swing.dataselectors.editors.QualifiersEditorInterface _filterQualifierEditor
protected java.util.Map _promptMap
protected java.util.Map _systemVariableMap
protected java.lang.String _filterLabel
protected java.lang.String _filterDescription
protected boolean _newFilter
protected java.util.Locale _locale
protected java.lang.Object _revertToFilterObject
protected java.lang.Object rootFilterObject
protected int environment
Constructor Detail |
---|
public DefaultAdvancedFilterModelAdapter()
public DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel)
businessModel
- the data source for the filter modelpublic DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel, java.lang.Object initialFilter)
businessModel
- the data source for the filter modelinitialFilter
- the initial filter to view/modifypublic DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
businessQuery
- the data source for the filter modelpublic DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.lang.Object initialFilter)
businessQuery
- the data source for the filter modelinitialFilter
- the initial filter to view/modifypublic DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.lang.Object initialFilter, java.util.Locale locale)
businessQuery
- the data source for the filter modelinitialFilter
- the initial filter to view/modifylocale
- the Locale to use to format valuespublic DefaultAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.lang.Object initialFilter, int environment)
businessQuery
- the data source for the filter modelinitialFilter
- the initial filter to view/modifyenvironment
- the operating environment (e.g. Swing,JSP)Method Detail |
---|
protected FilterBaseModelData getBaseModel()
public void setModel(com.sas.iquery.metadata.business.BusinessModel businessModel)
businessModel
- the new modelpublic void setModel(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
businessQuery
- the new modelpublic void setApplicationData(java.lang.Object data)
SimpleFilterListEditorModelBase
setApplicationData
in interface SimpleFilterDefinitionModelInterface
setApplicationData
in class SimpleFilterListEditorModelBase
data
- to be stored with this object for application useSimpleFilterDefinitionModelInterface.setApplicationData(Object)
public static com.sas.iquery.metadata.business.step.StepInterface getFilterableStep(com.sas.iquery.metadata.business.DataItem item)
item
- the DataItem to be searched
public void setBusinessModel(com.sas.iquery.metadata.business.BusinessModel model)
model
- the new BusinessModel object to use or null if none is to be usedpublic com.sas.iquery.metadata.business.BusinessModel getBusinessModel()
public void setBusinessQuery(com.sas.iquery.metadata.business.BusinessQuery model)
model
- the new BusinessQuery object to use or null if none is to be usedpublic com.sas.iquery.metadata.business.BusinessQuery getBusinessQuery()
public void setSelection(FilterLogicTestNodeInterface value)
setSelection
in interface SimpleFilterDefinitionModelInterface
setSelection
in class SimpleFilterListEditorModelBase
value
- the new selectionSimpleFilterDefinitionModelInterface.setSelection(FilterLogicTestNodeInterface)
public void setSelectionCursor(int index)
setSelectionCursor
in interface AdvancedFilterModelInterface
setSelectionCursor
in interface SimpleFilterListEditorModelInterface
setSelectionCursor
in class SimpleFilterListEditorModelBase
index
- the target index for the cursorSimpleFilterListEditorModelInterface.setSelectionCursor(int)
public boolean commitChanges()
commitChanges
in interface SimpleFilterDefinitionModelInterface
commitChanges
in class SimpleFilterListEditorModelBase
SimpleFilterDefinitionModelInterface.commitChanges()
public java.lang.Object getRootFilterObject()
getRootFilterObject
in interface SimpleFilterDefinitionModelInterface
getRootFilterObject
in class SimpleFilterListEditorModelBase
the
- root filter object in the native model
public void cancel()
cancel
in interface AdvancedFilterModelInterface
public void setFilterLabel(java.lang.String label)
setFilterLabel
in interface AdvancedFilterModelInterface
label
- the new filter labelAdvancedFilterModelInterface.setFilterLabel(String label)
protected void applyFilterLabel()
public java.lang.String getFilterLabel()
getFilterLabel
in interface AdvancedFilterModelInterface
AdvancedFilterModelInterface.getFilterLabel()
public void setFilterDescription(java.lang.String value)
setFilterDescription
in interface AdvancedFilterModelInterface
value
- the new descriptionprotected void applyFilterDescription()
public java.lang.String getFilterDescription()
getFilterDescription
in interface AdvancedFilterModelInterface
public boolean addSelection(FilterLogicTestNodeInterface value)
addSelection
in interface AdvancedFilterModelInterface
addSelection
in interface SimpleFilterListEditorModelInterface
addSelection
in class SimpleFilterListEditorModelBase
FilterLogicTestNodeInterface
- logic test node values to make up the new object
SimpleFilterListEditorModelInterface.addSelection(FilterLogicTestNodeInterface)
public void removeSelection()
removeSelection
in interface AdvancedFilterModelInterface
removeSelection
in interface SimpleFilterListEditorModelInterface
removeSelection
in class SimpleFilterListEditorModelBase
SimpleFilterListEditorModelInterface.removeSelection()
public SimpleFilterLogicTreeInterface getSelectionTree()
getSelectionTree
in interface AdvancedFilterModelInterface
FilterLogicTestNodeInterface
,
FilterLogicBaseNodeInterface
,
FilterLogicAndNodeInterface
,
FilterLogicOrNodeInterface
,
FilterLogicNotNodeInterface
public SimpleFilterLogicTreeInterface getSelectionTree(PersistentFilterInterface pFilter)
getSelectionTree
in interface PersistentFilterProviderModelInterface
public boolean isOLAP()
isOLAP
in interface AdvancedFilterDefinitionModelInterface
public boolean isCascadingPrompts()
isCascadingPrompts
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
public int isCascadable()
isCascadable
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
public void setEnforcePromptCascades(boolean cascadePrompts)
setEnforcePromptCascades
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
public boolean isEnforcingPromptCascades()
public com.sas.swing.dataselectors.editors.PromptValueEditorInterface getSharedPromptSelector()
PromptValueProviderModelInterface
getSharedPromptSelector
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
public void setSharedPromptSelector(com.sas.swing.dataselectors.editors.PromptValueEditorInterface sharedPromptSelector)
setSharedPromptSelector
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
sharedPromptSelector
- the new shared prompt definition selectorpublic com.sas.swing.dataselectors.editors.PromptValueEditorInterface getPromptValueEditor()
getPromptValueEditor
in interface AdvancedFilterModelInterface
public void setPromptValueEditor(com.sas.swing.dataselectors.editors.PromptValueEditorInterface promptValueEditor)
setPromptValueEditor
in interface AdvancedFilterModelInterface
promptValueEditor
- the new prompt editorpublic com.sas.swing.dataselectors.editors.ExpressionValueEditorInterface getExpressionValueEditor()
getExpressionValueEditor
in interface AdvancedFilterModelInterface
public void setExpressionValueEditor(com.sas.swing.dataselectors.editors.ExpressionValueEditorInterface expressionValueEditor)
setExpressionValueEditor
in interface AdvancedFilterModelInterface
expressionValueEditor
- the new expression value editorpublic com.sas.swing.dataselectors.editors.FilterItemEditorInterface getFilterItemEditor()
getFilterItemEditor
in interface AdvancedFilterModelInterface
public void setFilterItemEditor(com.sas.swing.dataselectors.editors.FilterItemEditorInterface filterItemEditor)
setFilterItemEditor
in interface AdvancedFilterModelInterface
the
- new filter item editorpublic com.sas.swing.dataselectors.editors.QualifiersEditorInterface getFilterQualifierEditor()
getFilterQualifierEditor
in interface AdvancedFilterModelInterface
protected java.lang.String getFilterQualifierSkipID(java.lang.Object nativeItem) throws FilterException
nativeItem
- the item to process
FilterException
- for any errors encountered while deriving the identifierpublic void setFilterQualifierEditorInfo(FilterLogicTestNodeInterface testNode)
setFilterQualifierEditorInfo
in interface AdvancedFilterModelInterface
testNode
- the test node that contains the current qualifier valuespublic FilterQualifierInterface applyFilterQualifierEditorChanges(FilterLogicTestNodeInterface testNode)
applyFilterQualifierEditorChanges
in interface AdvancedFilterModelInterface
testNode
- the selection model to update
public FilterQualifierInterface applyFilterQualifierEditorChanges(FilterLogicTestNodeInterface testNode, java.util.Map selectedQualifierMap)
testNode
- the selection model to updateselectedQualifierMap
-
public void setPromptValueEditorInfo(FilterLogicTestNodeInterface testNode, int valueIndex)
setPromptValueEditorInfo
in interface AdvancedFilterModelInterface
testNode
- the test node used to prepare the filter item editorvalueIndex
- the index of the value to editpublic void setPromptValueEditorInfo(FilterLogicTestNodeInterface testNode, int valueIndex, boolean isRangePrompt)
PromptValueProviderModelInterface
setPromptValueEditorInfo
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
testNode
- the test node to examinevalueIndex
- the index in the value list of the value to editisRangePrompt
- indicates if a range prompt definition should be usedpublic void setPromptValueEditorInfo(com.sas.swing.dataselectors.editors.PromptValueEditorInterface promptValueEditor, FilterLogicTestNodeInterface testNode, int valueIndex, boolean isRangePrompt)
setPromptValueEditorInfo
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
public FilterValueInterface applyPromptValueEditorChanges(FilterLogicTestNodeInterface testNode, int valueIndex)
applyPromptValueEditorChanges
in interface AdvancedFilterModelInterface
testNode
- the selection model to updatevalueIndex
- the index of the value to update
public FilterValueInterface applyPromptValueEditorChanges(com.sas.swing.dataselectors.editors.PromptValueEditorInterface promptValueEditor, FilterLogicTestNodeInterface testNode, int valueIndex)
applyPromptValueEditorChanges
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
testNode
- the selection model to updatevalueIndex
- the index of the value to update
public void setExpressionValueEditorInfo(FilterLogicTestNodeInterface testNode, int valueIndex)
setExpressionValueEditorInfo
in interface AdvancedFilterModelInterface
testNode
- the test node used to prepare the filter item editorvalueIndex
- the index of the value to editpublic FilterValueInterface applyExpressionValueEditorChanges(FilterLogicTestNodeInterface testNode, int valueIndex)
applyExpressionValueEditorChanges
in interface AdvancedFilterModelInterface
testNode
- the selection model to updatevalueIndex
- the index of the value to update
public void setFilterItemEditorInfo(FilterLogicTestNodeInterface testNode)
setFilterItemEditorInfo
in interface AdvancedFilterModelInterface
testNode
- the test node used to prepare the filter item editorpublic FilterItemInterface applyFilterItemEditorChanges(FilterLogicTestNodeInterface testNode)
applyFilterItemEditorChanges
in interface AdvancedFilterModelInterface
testNode
- the test node to apply the changes to
public void setFilterQualifierEditor(com.sas.swing.dataselectors.editors.QualifiersEditorInterface filterQualifierEditor)
setFilterQualifierEditor
in interface AdvancedFilterModelInterface
filterQualifierEditor
- the new filter qualifier editorpublic void clear()
clear
in interface AdvancedFilterModelInterface
public void clear(boolean commit)
clear
in interface AdvancedFilterModelInterface
commit
- flag for specifying if the native filter model should be updatedpublic boolean isEditedExpressionValue(java.lang.Object value)
isEditedExpressionValue
in interface AdvancedFilterModelInterface
the
- object to check
public boolean isUserCreatedValue(java.lang.Object value)
isUserCreatedValue
in interface AdvancedFilterModelInterface
value
- the Object to examine
public boolean isQuotedValue(java.lang.Object value)
isQuotedValue
in interface AdvancedFilterModelInterface
value
- the Object to examine
public boolean isPromptedValue(java.lang.Object value)
isPromptedValue
in interface AdvancedFilterModelInterface
value
- the object to check
public boolean isPromptedRangeValue(java.lang.Object value)
isPromptedRangeValue
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
value
- the object to check
public java.util.Map getPromptValueMap()
getPromptValueMap
in interface AdvancedFilterModelInterface
protected void refreshPromptValueMap()
public static boolean isPromptMultipleSelection(com.sas.iquery.metadata.business.Prompt prompt)
public java.util.List getPromptValueList(java.lang.Object item)
getPromptValueList
in interface AdvancedFilterModelInterface
item
- the object to return the list of prompts for
public java.util.List getPromptRangeValueList(java.lang.Object item)
PromptValueProviderModelInterface
getPromptRangeValueList
in interface com.sas.dataselectors.filters.PromptValueProviderModelInterface
item
- the object to return range prompts for
protected boolean isValidPromptType(FilterItemInterface filterItem, com.sas.datatypes.DataTypeInterface promptDataType)
protected int getFilterItemSQLType(FilterItemInterface item)
protected AttributeTypeInterface getFilterItemAttributeType(FilterItemInterface item)
public FilterValueInterface getPromptedValueByName(java.lang.String name)
name
- the prompt name to search for
public FilterObjectFactoryInterface getFilterObjectFactory()
public void setFilterObjectFactory(FilterObjectFactoryInterface factory)
factory
- the new factory object to usepublic int getMaxOutputObservations()
getMaxOutputObservations
in interface AdvancedFilterModelInterface
public void setMaxOutputObservations(int max)
setMaxOutputObservations
in interface AdvancedFilterModelInterface
max
- the maximum number of distinct values to listGoverning
public java.util.Locale getLocale()
getLocale
in interface AdvancedFilterModelInterface
public void setLocale(java.util.Locale locale)
setLocale
in interface AdvancedFilterModelInterface
locale
- the desired localepublic boolean isValidFilter(FilterLogicTestNodeInterface testNode) throws FilterException
isValidFilter
in interface AdvancedFilterModelInterface
testNode
- the test node representing the filter to validate
FilterException
- as a wrapper for any errors encountered while testing the filterpublic java.util.List getPersistentFilterList()
getPersistentFilterList
in interface PersistentFilterProviderModelInterface
protected boolean isFilterImportable(com.sas.iquery.metadata.business.FilterItem item)
protected boolean isFilterImportable(java.util.List testNodeList)
testNodeList
- the list of test nodes representing the candidate filter
public boolean isSystemVariableValue(java.lang.Object value)
isSystemVariableValue
in interface com.sas.dataselectors.filters.SystemVariableProviderInterface
value
- the Object to examine
public java.util.List getSystemVariableValueList(java.lang.Object item) throws FilterException
getSystemVariableValueList
in interface com.sas.dataselectors.filters.SystemVariableProviderInterface
testNode
- if not null, then subsets the list to system variables compatible with the node
FilterException
public void setEnvironment(int environment)
environment
- The environment to set. Valid values are ENVIRONMENT_SWING or ENVIRONMENT_JSP.public int getEnvironment()
public com.sas.storage.valueprovider.ValueProviderInterface getValueProvider(FilterLogicTestNodeInterface testNode, int valueIndex)
SearchValueProviderModelInterface
getValueProvider
in interface com.sas.dataselectors.filters.SearchValueProviderModelInterface
testNode
- the test node that contains the currently selected elements
of a single filter expressionvalueIndex
- the index (if applicable) of the value in the test node
this provider will be for
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |