Package com.smartsheet.api.models
Class ReportFilterCriterion
- java.lang.Object
-
- com.smartsheet.api.models.ReportFilterCriterion
-
public class ReportFilterCriterion extends java.lang.ObjectRepresents a single filter criterion.
-
-
Constructor Summary
Constructors Constructor Description ReportFilterCriterion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportColumnIdentifiergetColumn()Gets the column identifier.ReportFilterOperatorgetOperator()Gets the condition operator.java.util.List<ReportFilterObjectValue>getValues()Gets the filter values.ReportFilterCriterionsetColumn(ReportColumnIdentifier column)Sets the column identifier.ReportFilterCriterionsetOperator(ReportFilterOperator operator)Sets the condition operator.ReportFilterCriterionsetValues(java.util.List<ReportFilterObjectValue> values)Sets the filter values.
-
-
-
Method Detail
-
getColumn
public ReportColumnIdentifier getColumn()
Gets the column identifier.- Returns:
- the column
-
setColumn
public ReportFilterCriterion setColumn(ReportColumnIdentifier column)
Sets the column identifier.- Parameters:
column- the column
-
getOperator
public ReportFilterOperator getOperator()
Gets the condition operator.- Returns:
- the operator
-
setOperator
public ReportFilterCriterion setOperator(ReportFilterOperator operator)
Sets the condition operator.- Parameters:
operator- the operator
-
getValues
public java.util.List<ReportFilterObjectValue> getValues()
Gets the filter values.Values are
ReportFilterObjectValueimplementations representing different types:StringObjectValue- string valuesNumberObjectValue- numeric valuesDateObjectValue- date values with objectTypeCurrentUserObjectValue- current user filters- null - for null/empty values
- Returns:
- the values
-
setValues
public ReportFilterCriterion setValues(java.util.List<ReportFilterObjectValue> values)
Sets the filter values.Values should be
ReportFilterObjectValueimplementations. Use the static factory methods for type-safe value creation:ReportFilterObjectValue.string(String)- for string valuesReportFilterObjectValue.number(Number)- for numeric valuesReportFilterObjectValue.date(String)orReportFilterObjectValue.date(java.util.Date)- for date valuesReportFilterObjectValue.currentUser()- for current user filters
Example usage:
criterion.setValues(Arrays.asList( ReportFilterObjectValue.string("value1"), ReportFilterObjectValue.number(42), ReportFilterObjectValue.date("2024-01-01"), ReportFilterObjectValue.currentUser() ));- Parameters:
values- the values
-
-