|
||||||||||
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 String |
attribute
|
protected List |
values
|
Constructor Summary | |
---|---|
NameValue(String attribute)
|
Method Summary | |
---|---|
void |
clear()
Removes all values associated with the attribute. |
String |
getAttribute()
Returns the attribute name. |
Object |
getFirstValue()
Returns the first value (if any) in the list. |
List |
getValues()
Returns the list of values. |
boolean |
merge(NameValue nv)
|
boolean |
remove(Object value)
Removes a specific value from the list of values. |
void |
setAttribute(String attrib)
Sets the attribute name. |
void |
setValues(List values)
Sets the list of values. |
String |
toRSL(boolean explicitConcat)
Returns a RSL representation of this relation. |
abstract void |
toRSL(StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this relation. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String attribute
protected List values
Constructor Detail |
---|
public NameValue(String attribute)
Method Detail |
---|
public void setAttribute(String attrib)
attrib
- the attribute name.public void setValues(List values)
values
- list of values.public String getAttribute()
public List getValues()
public void clear()
public boolean remove(Object value)
value
- value to remove.
public String toRSL(boolean explicitConcat)
explicitConcat
- if true explicit concatination will
be used in RSL strings.
public abstract void toRSL(StringBuffer buf, boolean explicitConcat)
buf
- buffer to add the RSL representation to.explicitConcat
- if true explicit concatination will
be used in RSL strings.public Object getFirstValue()
public boolean merge(NameValue nv)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |