public static class StaticContentFilter.DynamicDateExpression extends Object implements Expression
Expression
representing a comparison between a metadata and the time the build() method is called.Expression.Operator
Modifier and Type | Field and Description |
---|---|
private MetadataExpression |
_metadataExpr |
private int |
_offsetValue
The offset value.
|
private Expression.Operator |
_operator |
Constructor and Description |
---|
DynamicDateExpression(String metadata,
Expression.Operator operator,
int offsetValue)
Create a comparison Expression relative to the current date, with an offset, normalizing the
|
private MetadataExpression _metadataExpr
private Expression.Operator _operator
private int _offsetValue
public DynamicDateExpression(String metadata, Expression.Operator operator, int offsetValue)
metadata
- the metadata nameoperator
- the operator to make the comparisonoffsetValue
- the offset value.public String build()
Expression
build
in interface Expression