com.sas.dataselectors.filters
Class FilterLogicTestNodeObjectMap

com.sas.dataselectors.filters.FilterLogicTestNodeObjectMap

public class FilterLogicTestNodeObjectMap

This class holds application data for the SimpleFilterSelector. Its primary function is to create a mapping of String keys to the various objects referenced by the selection model defined in FilterLogicTestNodeInterface.


Field Summary
protected  FilterLogicEditableTestNodeInterface _currentTestNode
           
protected  java.util.Map _filterConditionMap
          The object map for FilterConditionInterface instances.
protected  java.util.Map _filterItemMap
          The object map for FilterItemInterface instances.
protected  java.util.Map _filterMap
          The object map for all FilterItem instances in the DataSelection.
protected  java.util.Map _filterQualifiedConditionMap
           
protected  java.util.Map _filterQualifierMap
          The object map for FilterQualifierInterface instances.
protected  java.util.Map _filterValueMap
          The object map for FilterValuesInterface instances.
protected  java.util.Map _persistentFilterMap
          The object map for any persistent filters from the native model.
protected  FilterItemInterface _valuesMappedForItem
          The filter item that is associated with the current set of mapped values
protected  FilterValuesInterface filterValues
           
protected  java.util.List filterValuesList
           
protected  java.util.Map qualifiedMeasure
           
protected  javax.swing.tree.TreeNode rootNode
           
protected  com.sas.util.transforms.TransformInterface transformer
           
 
Constructor Summary
FilterLogicTestNodeObjectMap()
          Create a new map object without supplying a data source.
 
Method Summary
 java.util.Map getFilterConditionMap()
          Gets the map for the FilterConditionInterface instances in the data model.
 java.util.Map getFilterItemMap()
          Gets the map for the FilterItemInterface instances in the data model.
 java.util.Map getFilterMap()
          Gets the map for all FilterItem instances in the data model.
 java.util.Map getFilterQualifiedConditionMap()
          Gets the map for the FilterConditionInterface instances in the data model.
 java.util.Map getFilterQualifierMap()
          Gets the map for the FilterQualifierInterface instances in the data model.
 java.util.Map getFilterValueMap()
          Gets the map for the FilterValueInterface instances in the data model.
 FilterValuesInterface getFilterValues()
           
 java.util.List getFilterValuesList()
           
static java.lang.String getID(java.lang.Object object)
          Gets a unique String identifier for the given Object.
 FilterItemInterface getMappedFilterItem()
           
 java.util.Map getPersistentFilterMap()
          Gets the map for all PersistentFilterInterface instances in the data model.
 java.util.Map getQualifiedMeasure()
           
 javax.swing.tree.TreeNode getRootNode()
           
 FilterLogicEditableTestNodeInterface getTestNode()
           
 com.sas.util.transforms.TransformInterface getTransformer()
           
static java.lang.String getValueID(FilterValueInterface value)
          Gets a unique String identifier for the given filter value.
 boolean isOnlyLeafSelectable()
           
 void mapCondition(FilterItemInterface item)
           
 boolean mapFilterItem(FilterItemInterface item)
           
 void mapFilterItems(FilterItemListInterface filterItems)
           
 void mapFilterLogicList(FilterLogicListInterface flli)
           
 boolean mapFilterLogicTestNodeValues(java.util.List testNodeValues)
           
 void mapOLAPValues(FilterItemInterface item)
           
 void mapPersistentFilters(java.util.List persistentFilterList)
           
 void mapQualifier(FilterItemInterface item)
           
 void mapValues(FilterItemInterface item)
           
 void mapValues(FilterItemInterface filterItem, com.sas.storage.valueprovider.ValueProviderInterface vp, java.util.Locale locale)
           
 void setFilterConditionMap(java.util.Map map)
          Sets the map for the FilterConditionInterface instances in the data model.
 void setFilterItemMap(java.util.Map map)
          Sets the map for the FilterItemInterface instances in the data model.
 void setFilterMap(java.util.Map map)
          Sets the map for the FilterItem instances in the data model.
 void setFilterQualifiedConditionMap(java.util.Map map)
          Sets the map for the FilterConditionInterface instances in the data model.
 void setFilterQualifierMap(java.util.Map map)
          Sets the map for the FilterQualifierInterface instances in the data model.
 void setFilterValueMap(java.util.Map map)
          Sets the map for the FilterValueInterface instances in the data model.
 void setPersistentFilterMap(java.util.Map map)
          Sets the map for the PersistentFilterInterface instances in the data model.
 void setQualifiedMeasure(FilterQualifierInterface item)
           
 void setTestNode(FilterLogicEditableTestNodeInterface node)
           
 void setTranformer(com.sas.util.transforms.TransformInterface transform)
           
 

Field Detail

_filterItemMap

protected java.util.Map _filterItemMap
The object map for FilterItemInterface instances.


_filterQualifierMap

protected java.util.Map _filterQualifierMap
The object map for FilterQualifierInterface instances.


_filterConditionMap

protected java.util.Map _filterConditionMap
The object map for FilterConditionInterface instances.


_filterQualifiedConditionMap

protected java.util.Map _filterQualifiedConditionMap

_filterValueMap

protected java.util.Map _filterValueMap
The object map for FilterValuesInterface instances. I may not use this...


_valuesMappedForItem

protected FilterItemInterface _valuesMappedForItem
The filter item that is associated with the current set of mapped values


_filterMap

protected java.util.Map _filterMap
The object map for all FilterItem instances in the DataSelection.


_persistentFilterMap

protected java.util.Map _persistentFilterMap
The object map for any persistent filters from the native model.


_currentTestNode

protected FilterLogicEditableTestNodeInterface _currentTestNode

filterValues

protected FilterValuesInterface filterValues

transformer

protected com.sas.util.transforms.TransformInterface transformer

rootNode

protected javax.swing.tree.TreeNode rootNode

filterValuesList

protected java.util.List filterValuesList

qualifiedMeasure

protected java.util.Map qualifiedMeasure
Constructor Detail

FilterLogicTestNodeObjectMap

public FilterLogicTestNodeObjectMap()
Create a new map object without supplying a data source.

Method Detail

getRootNode

public javax.swing.tree.TreeNode getRootNode()

getFilterValues

public FilterValuesInterface getFilterValues()

setTranformer

public void setTranformer(com.sas.util.transforms.TransformInterface transform)

getTransformer

public com.sas.util.transforms.TransformInterface getTransformer()

getFilterItemMap

public java.util.Map getFilterItemMap()
Gets the map for the FilterItemInterface instances in the data model.

Returns:
the FilterItemInterface map

getFilterQualifierMap

public java.util.Map getFilterQualifierMap()
Gets the map for the FilterQualifierInterface instances in the data model.

Returns:
the FilterQualifierInterface map

getFilterConditionMap

public java.util.Map getFilterConditionMap()
Gets the map for the FilterConditionInterface instances in the data model.

Returns:
the FilterConditionInterface map

getFilterQualifiedConditionMap

public java.util.Map getFilterQualifiedConditionMap()
Gets the map for the FilterConditionInterface instances in the data model.

Returns:
the FilterConditionInterface map

getFilterValueMap

public java.util.Map getFilterValueMap()
Gets the map for the FilterValueInterface instances in the data model.

Returns:
the FilterValueInterface map

getFilterMap

public java.util.Map getFilterMap()
Gets the map for all FilterItem instances in the data model.

Returns:
the FilterItem map

getMappedFilterItem

public FilterItemInterface getMappedFilterItem()

getPersistentFilterMap

public java.util.Map getPersistentFilterMap()
Gets the map for all PersistentFilterInterface instances in the data model.

Returns:
the PersistentFilterInterface map

setFilterItemMap

public void setFilterItemMap(java.util.Map map)
Sets the map for the FilterItemInterface instances in the data model.

Parameters:
map - the new FilterItemInterface map

setFilterMap

public void setFilterMap(java.util.Map map)
Sets the map for the FilterItem instances in the data model.

Parameters:
map - the new FilterItem map
See Also:
FilterItem

setPersistentFilterMap

public void setPersistentFilterMap(java.util.Map map)
Sets the map for the PersistentFilterInterface instances in the data model.

Parameters:
map - the new PersistentFilterInterface map
See Also:
FilterItem

setFilterQualifierMap

public void setFilterQualifierMap(java.util.Map map)
Sets the map for the FilterQualifierInterface instances in the data model.

Parameters:
map - the new FilterQualifierInterface map

setFilterConditionMap

public void setFilterConditionMap(java.util.Map map)
Sets the map for the FilterConditionInterface instances in the data model.

Parameters:
map - the new FilterConditionInterface map

setFilterQualifiedConditionMap

public void setFilterQualifiedConditionMap(java.util.Map map)
Sets the map for the FilterConditionInterface instances in the data model.

Parameters:
map - the new FilterConditionInterface map

setFilterValueMap

public void setFilterValueMap(java.util.Map map)
Sets the map for the FilterValueInterface instances in the data model.

Parameters:
map - the new FilterValueInterface map

mapCondition

public void mapCondition(FilterItemInterface item)

mapQualifier

public void mapQualifier(FilterItemInterface item)

mapValues

public void mapValues(FilterItemInterface filterItem,
                      com.sas.storage.valueprovider.ValueProviderInterface vp,
                      java.util.Locale locale)
               throws java.lang.Exception
Throws:
java.lang.Exception

mapValues

public void mapValues(FilterItemInterface item)
               throws java.lang.Exception
Throws:
java.lang.Exception

isOnlyLeafSelectable

public boolean isOnlyLeafSelectable()

mapOLAPValues

public void mapOLAPValues(FilterItemInterface item)

mapFilterItems

public void mapFilterItems(FilterItemListInterface filterItems)

mapPersistentFilters

public void mapPersistentFilters(java.util.List persistentFilterList)
Parameters:
persistentFilterList -

mapFilterItem

public boolean mapFilterItem(FilterItemInterface item)

mapFilterLogicTestNodeValues

public boolean mapFilterLogicTestNodeValues(java.util.List testNodeValues)

mapFilterLogicList

public void mapFilterLogicList(FilterLogicListInterface flli)

getID

public static java.lang.String getID(java.lang.Object object)
Gets a unique String identifier for the given Object. The identifier is based on the Object's identity hash code and is guarenteed by the JVM to be unique to that Object during its lifetime and that execution of the JVM. These identifiers are not re-usable between JVM executions and should not be used for long term identifiers.

Parameters:
object - the Object to get an ID for
Returns:
the unique ID for the given object

getValueID

public static java.lang.String getValueID(FilterValueInterface value)
Gets a unique String identifier for the given filter value. The identifier is based on the value's identity hash code and is guarenteed by the JVM to be unique to that value during its lifetime and that execution of the JVM. These identifiers are not re-usable between JVM executions and should not be used for long term identifiers.

Parameters:
value - the FilterValueInterface to get an ID for
Returns:
the unique ID for the given value

getTestNode

public FilterLogicEditableTestNodeInterface getTestNode()

setTestNode

public void setTestNode(FilterLogicEditableTestNodeInterface node)

getFilterValuesList

public java.util.List getFilterValuesList()

getQualifiedMeasure

public java.util.Map getQualifiedMeasure()

setQualifiedMeasure

public void setQualifiedMeasure(FilterQualifierInterface item)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.