|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filterandrank.FilterAndRankModel
public class FilterAndRankModel
If used, this class would contain all the model information for the FilterAndRank selector.
Field Summary | |
---|---|
protected com.sas.beans.PropertyChangeSupport |
propertyChangeSupport
|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
FilterAndRankModel()
|
|
FilterAndRankModel(com.sas.iquery.metadata.business.BusinessQuery query)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the model. |
boolean |
applyChanges()
Applies any changes made to the selector model to the underlying native model. |
boolean |
clearAllSteps()
Clears the step list for both COLUMN and ROW roles. |
boolean |
clearStep(FilterAxisEnum role)
Clears the step list for the given role. |
java.lang.Object |
createFilterStep(FilterOperatorEnum operator,
java.lang.String value)
Creates a new filter step using the current TupleElement and the given properties. |
java.lang.Object |
createRankStep(RankOrderEnum rankOrder,
int value,
boolean includeTies,
RankTypeEnum rankType)
Creates a new rank step using the current TupleElement and the given properties. |
protected void |
firePropertyChange(com.sas.beans.PropertyChangeEvent evt)
Send a PropertyChangeEvent to any listeners added to the model. |
protected void |
firePropertyChange(java.lang.String propName,
java.lang.Object oldValue,
java.lang.Object newValue)
Send a PropertyChangeEvent to any listeners added to the model. |
java.lang.Object |
getBusinessQuery()
Returns the current BusinessQuery model. |
static com.sas.iquery.metadata.expr.ComparisonOperator |
getComparisonOperator(FilterOperatorEnum op)
|
FilterAxisEnum |
getFilterAxis()
Returns the FilterOnAxis constant corresponding to the axis the model is currently set to filter on. |
static FilterOperatorEnum |
getFilterOperator(com.sas.iquery.metadata.expr.ComparisonOperator iqOp)
|
static java.lang.String |
getIQRankOrder(RankOrderEnum rankOrder)
|
static java.lang.String |
getIQRankType(RankTypeEnum rankType)
|
static RankOrderEnum |
getRankOrder(java.lang.String iqRankOrder)
|
static RankTypeEnum |
getRankType(java.lang.String iqRankType)
|
static com.sas.iquery.metadata.business.Role |
getRole(FilterAxisEnum role)
|
java.lang.Object |
getStep(FilterAxisEnum role)
Returns the StepInterface at the requested Role. |
java.lang.String |
getStepText(FilterAxisEnum role,
java.util.Locale locale)
Constructs and returns a text representation of the step at the given role. |
protected java.lang.String |
getStepText(com.sas.iquery.metadata.business.step.StepInterface step,
java.util.Locale locale)
Constructs and returns a text representation of the given step. |
TupleElementInterface |
getTupleElement()
Returns the current tuple element. |
java.lang.String |
getTupleElementLabel()
Return a text representation for the current TupleElement. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the model. |
void |
setBusinessQuery(com.sas.iquery.metadata.business.BusinessQuery query)
Sets the current BusinessQuery model. |
boolean |
setStep(java.lang.Object step,
FilterAxisEnum role)
Sets the StepInterface at the specified Role. |
void |
setTupleElement(TupleElementInterface element)
Sets the current tuple element. |
Field Detail |
---|
public static final java.lang.String RB_KEY
protected com.sas.beans.PropertyChangeSupport propertyChangeSupport
Constructor Detail |
---|
public FilterAndRankModel()
public FilterAndRankModel(com.sas.iquery.metadata.business.BusinessQuery query)
Method Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface FilterAndRankModelInterface
listener
- the PropertyChangeListener to be notified when a PropertyChangeEvent occurspublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface FilterAndRankModelInterface
listener
- the PropertyChangeListener to stop being notified when a PropertyChangeEvent occursprotected void firePropertyChange(com.sas.beans.PropertyChangeEvent evt)
protected void firePropertyChange(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
public java.lang.Object getBusinessQuery()
getBusinessQuery
in interface FilterAndRankModelInterface
public void setBusinessQuery(com.sas.iquery.metadata.business.BusinessQuery query)
query
- the new model to setpublic boolean applyChanges() throws com.sas.util.ChainedException
applyChanges
in interface FilterAndRankModelInterface
com.sas.util.ChainedException
- if any problems occurred while updating
the native model.public TupleElementInterface getTupleElement()
getTupleElement
in interface FilterAndRankModelInterface
public void setTupleElement(TupleElementInterface element)
element
- the tuple element to setpublic FilterAxisEnum getFilterAxis() throws OLAPException
getFilterAxis
in interface FilterAndRankModelInterface
OLAPException
- if any problems occur while determining the axispublic java.lang.String getTupleElementLabel()
getTupleElementLabel
in interface FilterAndRankModelInterface
public java.lang.Object getStep(FilterAxisEnum role)
getStep
in interface FilterAndRankModelInterface
role
- the Role to examine (must be either Role.COLUMN or Role.ROW)
public java.lang.String getStepText(FilterAxisEnum role, java.util.Locale locale)
getStepText
in interface FilterAndRankModelInterface
role
- the role to examine (COLUMN or ROW)locale
- the locale to use when forming the text
protected java.lang.String getStepText(com.sas.iquery.metadata.business.step.StepInterface step, java.util.Locale locale)
step
- the step to examinelocale
- the locale to use when forming the text
public boolean setStep(java.lang.Object step, FilterAxisEnum role)
setStep
in interface FilterAndRankModelInterface
step
- the step to assign to the modelrole
- the role the step should take
public boolean clearStep(FilterAxisEnum role)
clearStep
in interface FilterAndRankModelInterface
role
- the role to clear
public boolean clearAllSteps()
clearAllSteps
in interface FilterAndRankModelInterface
public java.lang.Object createFilterStep(FilterOperatorEnum operator, java.lang.String value)
createFilterStep
in interface FilterAndRankModelInterface
operator
- the operator for the new filtervalue
- the value to fulfill the condition
public java.lang.Object createRankStep(RankOrderEnum rankOrder, int value, boolean includeTies, RankTypeEnum rankType)
createRankStep
in interface FilterAndRankModelInterface
rankOrder
- the order for the rankingvalue
- the value applied to the rankingincludeTies
- true if ties should be included, false otherwiserankType
- the type of ranking to perform
public static java.lang.String getIQRankType(RankTypeEnum rankType)
public static RankTypeEnum getRankType(java.lang.String iqRankType)
public static java.lang.String getIQRankOrder(RankOrderEnum rankOrder)
public static RankOrderEnum getRankOrder(java.lang.String iqRankOrder)
public static com.sas.iquery.metadata.business.Role getRole(FilterAxisEnum role)
public static com.sas.iquery.metadata.expr.ComparisonOperator getComparisonOperator(FilterOperatorEnum op)
public static FilterOperatorEnum getFilterOperator(com.sas.iquery.metadata.expr.ComparisonOperator iqOp)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |