Class FilterExpressionAdapter
The FilterExpressionAdapter converts instances of FilterExpression to corresponding instances of ExpressionFilter.
Inherited Members
Namespace: EPiServer.Social.Common.Rest
Assembly: EPiServer.Social.Common.Rest.dll
Version: 1.5.4Syntax
public class FilterExpressionAdapter : FilterExpressionVisitor
Constructors
FilterExpressionAdapter()
Constructor
Declaration
public FilterExpressionAdapter()
Methods
Adapt(FilterExpression)
Converts the specified FilterExpression to a corresponding ExtensionFilter.
Declaration
public virtual ExtensionFilter Adapt(FilterExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| FilterExpression | expression | FilterExpression to be adapted |
Returns
| Type | Description |
|---|---|
| ExtensionFilter | A corresponding ExtensionFilter |
Adapt(ExtensionFilter)
Returns the serialized Json string corresponding to an instance of the ExtensionFilter.
Declaration
public string Adapt(ExtensionFilter filter)
Parameters
| Type | Name | Description |
|---|---|---|
| ExtensionFilter | filter | The ExtensionFilter to serialize |
Returns
| Type | Description |
|---|---|
| System.String | The serialized Json string corresponding to an instance of the ExtensionFilter |
Visit(AndExpression)
Visits the specified expression to be interpreted as an 'And' ExtensionFilter.
Declaration
public override void Visit(AndExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| AndExpression | expression | Expression to be interpreted |
Overrides
Visit(AnyExpression)
Visits the specified expression to be interpreted as an AnyExpression filter.
Declaration
public override void Visit(AnyExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| AnyExpression | expression | Expression to be interpreted |
Overrides
Visit(BooleanValueExpression)
Visits the specified expression to be interpreted as an 'boolean value' ExtensionFilter.
Declaration
public override void Visit(BooleanValueExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| BooleanValueExpression | expression | Expression to be interpreted |
Overrides
Visit(ContainsExpression)
Visits the specified expression to be interpreted as an 'Contains' ExtensionFilter.
Declaration
public override void Visit(ContainsExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| ContainsExpression | expression | Expression to be interpreted |
Overrides
Visit(DateTimeValueExpression)
Visits the specified expression to be interpreted as an 'DateTime value' ExtensionFilter.
Declaration
public override void Visit(DateTimeValueExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTimeValueExpression | expression | Expression to be interpreted |
Overrides
Visit(DoubleValueExpression)
Visits the specified expression to be interpreted as an 'double value' ExtensionFilter.
Declaration
public override void Visit(DoubleValueExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleValueExpression | expression | Expression to be interpreted |
Overrides
Visit(EnumerableValueExpression)
Visits the specified expression to be interpreted as an EnumerableValueExpression filter.
Declaration
public override void Visit(EnumerableValueExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| EnumerableValueExpression | expression | Expression to be interpreted |
Overrides
Visit(EqualToExpression)
Visits the specified expression to be interpreted as an 'EqualTo' ExtensionFilter.
Declaration
public override void Visit(EqualToExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| EqualToExpression | expression | Expression to be interpreted |
Overrides
Visit(FieldExpression)
Visits the specified expression to be interpreted as an 'field' ExtensionFilter.
Declaration
public override void Visit(FieldExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldExpression | expression | Expression to be interpreted |
Overrides
Visit(FilterExpression)
Visits the specified expression to be interpreted as an ExtensionFilter.
Declaration
public override void Visit(FilterExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| FilterExpression | expression | Expression to be interpreted |
Overrides
Visit(GreaterThanExpression)
Visits the specified expression to be interpreted as an 'GreaterThan' ExtensionFilter.
Declaration
public override void Visit(GreaterThanExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| GreaterThanExpression | expression | Expression to be interpreted |
Overrides
Visit(GreaterThanOrEqualToExpression)
Visits the specified expression to be interpreted as an 'GreaterThanOrEqualTo' ExtensionFilter.
Declaration
public override void Visit(GreaterThanOrEqualToExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| GreaterThanOrEqualToExpression | expression | Expression to be interpreted |
Overrides
Visit(IntegerValueExpression)
Visits the specified expression to be interpreted as an 'integer value' ExtensionFilter.
Declaration
public override void Visit(IntegerValueExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| IntegerValueExpression | expression | Expression to be interpreted |
Overrides
Visit(LessThanExpression)
Visits the specified expression to be interpreted as an 'LessThan' ExtensionFilter.
Declaration
public override void Visit(LessThanExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| LessThanExpression | expression | Expression to be interpreted |
Overrides
Visit(LessThanOrEqualToExpression)
Visits the specified expression to be interpreted as an 'LessThanOrEqualTo' ExtensionFilter.
Declaration
public override void Visit(LessThanOrEqualToExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| LessThanOrEqualToExpression | expression | Expression to be interpreted |
Overrides
Visit(OrExpression)
Visits the specified expression to be interpreted as an 'Or' ExtensionFilter.
Declaration
public override void Visit(OrExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| OrExpression | expression | Expression to be interpreted |
Overrides
Visit(StringValueExpression)
Visits the specified expression to be interpreted as an 'string value' ExtensionFilter.
Declaration
public override void Visit(StringValueExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| StringValueExpression | expression | Expression to be interpreted |