Bindings
, NameOpValue
public abstract class NameValue extends Object
Modifier and Type | Field | Description |
---|---|---|
protected String |
attribute |
|
protected List |
values |
Modifier and Type | Method | Description |
---|---|---|
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() |
public NameValue(String attribute)
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)
Copyright © 2018. All rights reserved.