Package org.globus.rsl
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 TypeMethodDescriptionvoid
clear()
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.boolean
boolean
Removes a specific value from the list of values.void
setAttribute
(String attrib) Sets the attribute name.void
Sets the list of values.toRSL
(boolean explicitConcat) Returns a RSL representation of this relation.abstract void
toRSL
(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
Sets the list of values.- Parameters:
values
- list of values.
-
getAttribute
Returns the attribute name.- Returns:
- the attribute name.
-
getValues
Returns the list of values.- Returns:
- list of values.
-
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
-