public class NameOpValue extends NameValue
Modifier and Type | Field and Description |
---|---|
static int |
EQ |
static int |
GT |
static int |
GTEQ |
static int |
LT |
static int |
LTEQ |
static int |
NEQ |
protected int |
operator |
Constructor and Description |
---|
NameOpValue(String attribute) |
NameOpValue(String attribute,
int op) |
NameOpValue(String attribute,
int op,
String strValue) |
NameOpValue(String attribute,
int op,
String[] strValues) |
NameOpValue(String attribute,
int op,
Value value) |
Modifier and Type | Method and Description |
---|---|
void |
add(List list)
Adds a list to the list of values.
|
void |
add(String strValue)
Adds a value to the list of values.
|
void |
add(String[] strValues)
Adds an array of values to the list of values.
|
void |
add(Value value)
Adds a value to the list of values.
|
NameOpValue |
evaluate(Map symbolTable)
Evaluates the relation against the symbol table.
|
int |
getOperator()
Returns the relation operator.
|
String |
getOperatorAsString()
Returns the relation operator as a string.
|
static String |
getOperatorAsString(int op)
Returns a string representation of the specified
relation operator.
|
static List |
getValuesAsString(List values,
boolean includeNested) |
List |
getValuesAsStrings(boolean includeNested) |
void |
setOperator(int oper)
Sets the relation operator.
|
void |
toRSL(StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this relation.
|
clear, getAttribute, getFirstValue, getValues, merge, remove, setAttribute, setValues, toRSL, toString
public static final int EQ
public static final int NEQ
public static final int GT
public static final int GTEQ
public static final int LT
public static final int LTEQ
protected int operator
public NameOpValue(String attribute)
public NameOpValue(String attribute, int op)
public void setOperator(int oper)
oper
- the relation operator.public int getOperator()
public String getOperatorAsString()
public static String getOperatorAsString(int op)
op
- the relation operatorpublic void add(Value value)
value
- the value to add.public void add(String strValue)
strValue
- the value to add.public void add(String[] strValues)
strValues
- the array of values to add.public void add(List list)
list
- the list to add.public List getValuesAsStrings(boolean includeNested)
public void toRSL(StringBuffer buf, boolean explicitConcat)
public NameOpValue evaluate(Map symbolTable) throws RslEvaluationException
symbolTable
- the symbol table to evalute the relation
against.RslEvaluationException
- If an error occured during
rsl evaluation.Copyright © 2016. All rights reserved.