com.sas.iquery.metadata.expr.olap
Class BaseFilterExpression
com.sas.iquery.metadata.expr.olap.BaseFilterExpression
All Implemented Interfaces: Base , BusinessModelResourceReferencer , ModelItem , UsabilityInterface , ExpressionInterface , PropertyChangeListenee , java.beans.PropertyChangeListener , java.lang.Cloneable , java.util.EventListener
Direct Known Subclasses: DataBasedFilterExpression , MemberFilterExpression , TimeFilterExpression , TimeRangeFilterExpression
public abstract class BaseFilterExpression implements BusinessModelResourceReferencer
Handles rudimentary modeling that is equivalent to the MemberFilter Step.
This is of the format {WhatToFilter} in ({Member Name 1}..{Member Name n})
.
See Also: DataItemMemberFilter
EVENT_WHAT_TO_COMPARE_CHANGED
public static final java.lang.String EVENT_WHAT_TO_COMPARE_CHANGED
Indication that what is being compared has changed.
See Also: Constant Field Values
BaseFilterExpression
public BaseFilterExpression ()
setWhatToCompare
public void setWhatToCompare (ExpressionInterface expr)
Sets the value of what is being compared.
Parameters: expr
- is the value in question and must not be a CompoundConditionalExpression
getWhatToCompare
public ExpressionInterface getWhatToCompare ()
Returns expression of what is being compared.
Returns: expression is the value in question.
getLevels
public java.util.List <com.sas.iquery.metadata.business.QualifiedLevel> getLevels (com.sas.storage.olap.MetadataInterface metadata)
Get the levels defined for this step filter.
Not yet implemented.
Parameters: metadata
- dataItem
-
Returns:
getDisplayedText
public java.lang.String getDisplayedText (com.sas.storage.olap.MetadataInterface metadata,
boolean applyPromptValues,
java.util.Locale locale)
Return the displayed readable text for this filter.
Example 1:
The label of the "[PRODUCT].[CATEGORY].[CHILDREN]" is "Product Equal to Children".
Example 2:
The label for the top 5 items on the column axis is "Columns, Top 2 Count (excluding ties)"
Parameters: metadata
- dataItem
- apply
- either prompt value or prompt labels.
Returns:
Copyright © 2009 SAS Institute Inc. All Rights Reserved.