|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.rsl.NameValue
public abstract class NameValue
This class represents an attribute that is associated with multiple values.
| Field Summary | |
|---|---|
protected java.lang.String |
attribute
|
protected java.util.List |
values
|
| Constructor Summary | |
|---|---|
NameValue(java.lang.String attribute)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String attribute
protected java.util.List values
| Constructor Detail |
|---|
public NameValue(java.lang.String attribute)
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||