org.globus.rsl
public abstract class NameValue extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
attribute |
protected java.util.List |
values |
Constructor and Description |
---|
NameValue(java.lang.String attribute) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all values associated
with the attribute.
|
java.lang.String |
getAttribute()
Returns the attribute name.
|
java.lang.Object |
getFirstValue()
Returns the first value (if any) in the
list.
|
java.util.List |
getValues()
Returns the list of values.
|
boolean |
merge(NameValue nv) |
boolean |
remove(java.lang.Object value)
Removes a specific value from the list of values.
|
void |
setAttribute(java.lang.String attrib)
Sets the attribute name.
|
void |
setValues(java.util.List values)
Sets the list of values.
|
java.lang.String |
toRSL(boolean explicitConcat)
Returns a RSL representation of this relation.
|
abstract void |
toRSL(java.lang.StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this relation.
|
java.lang.String |
toString() |
public void setAttribute(java.lang.String attrib)
attrib
- the attribute name.public void setValues(java.util.List values)
values
- list of values.public java.lang.String getAttribute()
public java.util.List getValues()
public void clear()
public boolean remove(java.lang.Object value)
value
- value to remove.public java.lang.String toRSL(boolean explicitConcat)
explicitConcat
- if true explicit concatination will
be used in RSL strings.public abstract void toRSL(java.lang.StringBuffer buf, boolean explicitConcat)
buf
- buffer to add the RSL representation to.explicitConcat
- if true explicit concatination will
be used in RSL strings.public java.lang.Object getFirstValue()
public boolean merge(NameValue nv)
public java.lang.String toString()
toString
in class java.lang.Object