com.sas.dataselectors.filters
Class DefaultFilterConditionList

com.sas.dataselectors.filters.DefaultFilterConditionList
All Implemented Interfaces:
FilterConditionListInterface

public class DefaultFilterConditionList
implements FilterConditionListInterface

Reference implementation of the FilterConditionListInterface.


Field Summary
static java.lang.String RB_KEY
           
 
Constructor Summary
DefaultFilterConditionList()
           
DefaultFilterConditionList(java.util.List conditionList)
           
 
Method Summary
static FilterConditionInterface createCondition(java.lang.Object conditionObject, java.lang.String conditionLabel, java.lang.String conditionMessageFormat, int argumentCount, java.lang.String[] argumentLabels)
           
static FilterConditionInterface createCondition(java.lang.String conditionLabel, java.lang.String conditionMessageFormat, int argumentCount, java.lang.String[] argumentLabels)
           
static java.lang.String format(java.lang.String item, FilterConditionInterface condition, java.util.List values)
          Static convienence function to format a condition using its message format
 java.util.List getConditionList()
          return List ( of FilterConditionInterface )
 java.lang.String getConditionListLabel()
          This call returns the 'label' or user displayable name for this list of conditions.
static FilterConditionListInterface getDefaultModelWithAllConditions()
           
static FilterConditionListInterface getDefaultModelWithNoListConditions()
           
static FilterConditionListInterface getDefaultModelWithNoNullOrMissingValue()
           
static FilterConditionListInterface getDefaultModelWithOnlyEquivalence()
           
 void setConditionList(java.util.List conditionList)
           
 void setConditionListLabel(java.lang.String listLabel)
           
 

Field Detail

RB_KEY

public static java.lang.String RB_KEY
Constructor Detail

DefaultFilterConditionList

public DefaultFilterConditionList()

DefaultFilterConditionList

public DefaultFilterConditionList(java.util.List conditionList)
Method Detail

getConditionListLabel

public java.lang.String getConditionListLabel()
Description copied from interface: FilterConditionListInterface
This call returns the 'label' or user displayable name for this list of conditions. This might be the word 'Operation' to be generic or it could be customized to be a value specified by the client.

Specified by:
getConditionListLabel in interface FilterConditionListInterface
Returns:
String

setConditionListLabel

public void setConditionListLabel(java.lang.String listLabel)

getConditionList

public java.util.List getConditionList()
Description copied from interface: FilterConditionListInterface
return List ( of FilterConditionInterface )

Specified by:
getConditionList in interface FilterConditionListInterface

setConditionList

public void setConditionList(java.util.List conditionList)

createCondition

public static FilterConditionInterface createCondition(java.lang.String conditionLabel,
                                                       java.lang.String conditionMessageFormat,
                                                       int argumentCount,
                                                       java.lang.String[] argumentLabels)

createCondition

public static FilterConditionInterface createCondition(java.lang.Object conditionObject,
                                                       java.lang.String conditionLabel,
                                                       java.lang.String conditionMessageFormat,
                                                       int argumentCount,
                                                       java.lang.String[] argumentLabels)

format

public static java.lang.String format(java.lang.String item,
                                      FilterConditionInterface condition,
                                      java.util.List values)
Static convienence function to format a condition using its message format

Parameters:
String - Item
FilterConditionInterface - condition
java.util.List - Values
Returns:
String formatted message

getDefaultModelWithAllConditions

public static FilterConditionListInterface getDefaultModelWithAllConditions()

getDefaultModelWithNoNullOrMissingValue

public static FilterConditionListInterface getDefaultModelWithNoNullOrMissingValue()

getDefaultModelWithNoListConditions

public static FilterConditionListInterface getDefaultModelWithNoListConditions()

getDefaultModelWithOnlyEquivalence

public static FilterConditionListInterface getDefaultModelWithOnlyEquivalence()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.