|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.rsl.NameValue
org.globus.rsl.NameOpValue
public class NameOpValue
This class represents a single relation in the RSL string.
Field Summary | |
---|---|
static int |
EQ
|
static int |
GT
|
static int |
GTEQ
|
static int |
LT
|
static int |
LTEQ
|
static int |
NEQ
|
protected int |
operator
|
Fields inherited from class org.globus.rsl.NameValue |
---|
attribute, values |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.globus.rsl.NameValue |
---|
clear, getAttribute, getFirstValue, getValues, merge, remove, setAttribute, setValues, toRSL, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public NameOpValue(String attribute)
public NameOpValue(String attribute, int op)
public NameOpValue(String attribute, int op, String strValue)
public NameOpValue(String attribute, int op, String[] strValues)
public NameOpValue(String attribute, int op, Value value)
Method Detail |
---|
public void setOperator(int oper)
oper
- the relation operator.public int getOperator()
public String getOperatorAsString()
public static String getOperatorAsString(int op)
op
- the relation operator
public 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 static List getValuesAsString(List values, boolean includeNested)
public void toRSL(StringBuffer buf, boolean explicitConcat)
toRSL
in class NameValue
buf
- buffer to add the RSL representation to.explicitConcat
- if true explicit concatination will
be used in RSL strings.public NameOpValue evaluate(Map symbolTable) throws RslEvaluationException
symbolTable
- the symbol table to evalute the relation
against.
RslEvaluationException
- If an error occured during
rsl evaluation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |