|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.BusinessQueryToAdvancedFilterModelAdapter
public class BusinessQueryToAdvancedFilterModelAdapter
This adapter is intended for use at run-time or anytime a full BusinessQuery model is to be filtered.
Field Summary |
---|
Fields inherited from class com.sas.dataselectors.filters.DefaultAdvancedFilterModelAdapter |
---|
_businessModel, _businessQuery, _expressionValueEditor, _filterDescription, _filterItemEditor, _filterLabel, _filterObjectFactory, _filterQualifierEditor, _initialFilterObject, _locale, _logicTree, _newFilter, _promptMap, _promptValueEditor, _revertToFilterObject, _systemVariableMap, environment, rootFilterObject |
Fields inherited from class com.sas.dataselectors.filters.SimpleFilterListEditorModelBase |
---|
_adapter, _filterLogicList, _selectionIndex, _selectionModel |
Constructor Summary | |
---|---|
BusinessQueryToAdvancedFilterModelAdapter()
Constructs an adapter without an input model. |
|
BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
Constructs a new adapter from the given model. |
|
BusinessQueryToAdvancedFilterModelAdapter(com.sas.storage.iquery.BusinessQueryAdapter adapter)
Constructs a new filter adapter using the model embedded in the supplied BusinessQueryAdapter. |
|
BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
int environment)
Constructs a new adapter from the given model. |
|
BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
java.lang.Object initialFilter)
Constructs a new adapter from the given model and uses the specified object for the source of the filter to create or modify. |
|
BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
java.lang.Object initialFilter,
int environment)
Constructs a new adapter from the given model and uses the specified object for the source of the filter to create or modify. |
|
BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
java.lang.Object initialFilter,
java.util.Locale locale)
Constructs a new adapter from the given model and uses the specified object for the source of the filter to create or modify. |
|
BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface bqProvider)
Constructs a new filter adapter using the model provided by the given provider. |
Method Summary | |
---|---|
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.lang.Object |
getRootFilterObject()
Returns the root filter object in the native model. |
protected boolean |
isFilterImportable(java.util.List testNodeList)
|
boolean |
isValidFilter(FilterLogicTestNodeInterface testNode)
Attempts to validate the filter represented by the given test node. |
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 |
Constructor Detail |
---|
public BusinessQueryToAdvancedFilterModelAdapter()
public BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
businessQuery
- the native modelpublic BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, int environment)
businessQuery
- the native modelenvironment
- the operating environment (e.g. Swing,JSP)public BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.lang.Object initialFilter)
businessQuery
- the native modelinitialFilter
- the source of the filter to editpublic BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.lang.Object initialFilter, java.util.Locale locale)
businessQuery
- the native modelinitialFilter
- the source of the filter to editlocale
- the Locale to use to format valuespublic BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.lang.Object initialFilter, int environment)
businessQuery
- the native modelinitialFilter
- the source of the filter to editenvironment
- the operating environment (e.g. Swing,JSP)public BusinessQueryToAdvancedFilterModelAdapter(com.sas.storage.iquery.BusinessQueryAdapter adapter)
adapter
- the adapter holding the BusinessQuery modelpublic BusinessQueryToAdvancedFilterModelAdapter(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface bqProvider)
bqProvider
- the provider holding the BusinessQuery adapterMethod Detail |
---|
protected java.lang.String getFilterQualifierSkipID(java.lang.Object nativeItem) throws FilterException
getFilterQualifierSkipID
in class DefaultAdvancedFilterModelAdapter
nativeItem
- the item to process
FilterException
- for any errors encountered while deriving the identifierpublic java.lang.Object getRootFilterObject()
DefaultAdvancedFilterModelAdapter
getRootFilterObject
in interface SimpleFilterDefinitionModelInterface
getRootFilterObject
in class DefaultAdvancedFilterModelAdapter
public boolean isValidFilter(FilterLogicTestNodeInterface testNode) throws FilterException
isValidFilter
in interface AdvancedFilterModelInterface
isValidFilter
in class DefaultAdvancedFilterModelAdapter
testNode
- the test node representing the filter to validate
FilterException
- as a wrapper for any errors encountered while testing the filterprotected boolean isFilterImportable(java.util.List testNodeList)
isFilterImportable
in class DefaultAdvancedFilterModelAdapter
testNodeList
- the list of test nodes representing the candidate filter
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |