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 intstatic final intstatic final intstatic final intstatic final intstatic final intprotected 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 TypeMethodDescriptionvoidAdds a value to the list of values.voidAdds an array of values to the list of values.voidAdds a list to the list of values.voidAdds a value to the list of values.Evaluates the relation against the symbol table.private ListevaluateSub(List values, Map symbolTable) intReturns the relation operator.Returns the relation operator as a string.static StringgetOperatorAsString(int op) Returns a string representation of the specified relation operator.static ListgetValuesAsString(List values, boolean includeNested) getValuesAsStrings(boolean includeNested) voidsetOperator(int oper) Sets the relation operator.voidtoRSL(StringBuffer buf, boolean explicitConcat) Produces a RSL representation of this relation.private voidtoRSLSub(List values, StringBuffer buf, boolean explicitConcat) Methods inherited from class 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. -
toRSLSub
-
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.
-
evaluateSub
- Throws:
RslEvaluationException
-