Class NameValue
java.lang.Object
org.globus.rsl.NameValue
- Direct Known Subclasses:
Bindings, NameOpValue
This class represents an attribute that is associated with multiple values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all values associated with the attribute.Returns the attribute name.Returns the first value (if any) in the list.Returns the list of values.booleanbooleanRemoves a specific value from the list of values.voidsetAttribute(String attrib) Sets the attribute name.voidSets the list of values.toRSL(boolean explicitConcat) Returns a RSL representation of this relation.abstract voidtoRSL(StringBuffer buf, boolean explicitConcat) Produces a RSL representation of this relation.toString()
-
Field Details
-
attribute
-
values
-
-
Constructor Details
-
NameValue
-
-
Method Details
-
setAttribute
Sets the attribute name.- Parameters:
attrib- the attribute name.
-
setValues
-
getAttribute
-
getValues
-
clear
public void clear()Removes all values associated with the attribute. -
remove
Removes a specific value from the list of values. The value must be matched exactly to be removed from the list.- Parameters:
value- value to remove.- Returns:
- true if the value was successfuly removed from the list of values. False, otherwise.
-
toRSL
Returns a RSL representation of this relation.- Parameters:
explicitConcat- if true explicit concatination will be used in RSL strings.- Returns:
- RSL representation of this relation.
-
toRSL
Produces a RSL representation of this relation.- Parameters:
buf- buffer to add the RSL representation to.explicitConcat- if true explicit concatination will be used in RSL strings.
-
getFirstValue
Returns the first value (if any) in the list.- Returns:
- the first value. Null, if there is no values at all.
-
merge
-
toString
-