public class TagExpression extends Object implements Expression
Expression
corresponding to a tag comparison.Modifier and Type | Class and Description |
---|---|
static class |
TagExpression.LogicalOperator
The logical operator to use in xpath query
|
Expression.Operator
Modifier and Type | Field and Description |
---|---|
private TagExpression.LogicalOperator |
_logicalOperator |
private Expression.Operator |
_operator |
private String[] |
_values |
Constructor and Description |
---|
TagExpression(Expression.Operator operator,
String value)
Creates the expression.
|
TagExpression(Expression.Operator operator,
String[] values,
TagExpression.LogicalOperator logicalOperator)
Creates the expression.
|
private Expression.Operator _operator
private TagExpression.LogicalOperator _logicalOperator
public TagExpression(Expression.Operator operator, String value)
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)value
- the tag valuepublic TagExpression(Expression.Operator operator, String[] values, TagExpression.LogicalOperator logicalOperator)
operator
- the operator to make the comparison (only Operator.EQ and Operator.NE allowed)values
- the tags value in a arraylogicalOperator
- the logical operator to use for given valuepublic String build()
Expression
build
in interface Expression