Package org.globus.rsl
Class NameOpValue
java.lang.Object
org.globus.rsl.NameValue
org.globus.rsl.NameOpValue
This class represents a single relation in the RSL string.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionNameOpValue
(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) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a value to the list of values.void
Adds an array of values to the list of values.void
Adds a list to the list of values.void
Adds a value to the list of values.Evaluates the relation against the symbol table.int
Returns the relation operator.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) getValuesAsStrings
(boolean includeNested) void
setOperator
(int oper) Sets the relation operator.void
toRSL
(StringBuffer buf, boolean explicitConcat) Produces a RSL representation of this relation.Methods inherited from class org.globus.rsl.NameValue
clear, getAttribute, getFirstValue, getValues, merge, remove, setAttribute, setValues, toRSL, toString
-
Field Details
-
EQ
public static final int EQ- See Also:
-
NEQ
public static final int NEQ- See Also:
-
GT
public static final int GT- See Also:
-
GTEQ
public static final int GTEQ- See Also:
-
LT
public static final int LT- See Also:
-
LTEQ
public static final int LTEQ- See Also:
-
operator
protected int operator
-
-
Constructor Details
-
NameOpValue
-
NameOpValue
-
NameOpValue
-
NameOpValue
-
NameOpValue
-
-
Method Details
-
setOperator
public void setOperator(int oper) Sets the relation operator.- Parameters:
oper
- the relation operator.
-
getOperator
public int getOperator()Returns the relation operator.- Returns:
- the relation operator.
-
getOperatorAsString
Returns the relation operator as a string.- Returns:
- the relation operator as a string.
-
getOperatorAsString
Returns a string representation of the specified relation operator.- Parameters:
op
- the relation operator- Returns:
- the string representaion of the relation operator.
-
add
Adds a value to the list of values.- Parameters:
value
- the value to add.
-
add
Adds a value to the list of values. The string value is first converted into a Value object.- Parameters:
strValue
- the value to add.
-
add
Adds an array of values to the list of values. Each element in the array is converted into a Value object and inserted as a separate value into the list of values.- Parameters:
strValues
- the array of values to add.
-
add
Adds a list to the list of values. It is inserted as a single element.- Parameters:
list
- the list to add.
-
getValuesAsStrings
-
getValuesAsString
-
toRSL
Produces a RSL representation of this relation. -
evaluate
Evaluates the relation against the symbol table.- Parameters:
symbolTable
- the symbol table to evalute the relation against.- Returns:
- a new evaluted relation.
- Throws:
RslEvaluationException
- If an error occured during rsl evaluation.
-