public class ValuesListHandle extends BaseHandle<InputStream,OperationNotSupported> implements ValuesListReadHandle, ValuesListResults
A ValuesListHandle represents a list of available named lexicon configurations from saved query options.
UNKNOWN_LENGTH| Constructor and Description |
|---|
ValuesListHandle()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOptionsName()
Returns the name of the query options used for this query.
|
HashMap<String,String> |
getValuesMap()
Returns a HashMap of the named lexicon configurations.
|
void |
setFormat(Format format)
Sets the format associated with this handle.
|
void |
setOptionsName(String name)
Sets the name of the query options to be used for this query.
|
ValuesListHandle |
withFormat(Format format)
Fluent setter for the format associated with this handle.
|
getByteLength, getFormat, getMimetype, getServerTimestamp, setByteLength, setMimetype, setServerTimestamppublic void setFormat(Format format)
Sets the format associated with this handle.
This handle only supports XML.
setFormat in interface ContentDescriptorsetFormat in class BaseHandle<InputStream,OperationNotSupported>format - The format, which must be Format.XML or an exception will be raised.public ValuesListHandle withFormat(Format format)
Fluent setter for the format associated with this handle.
This handle only supports XML.
format - The format, which must be Format.XML or an exception will be raised.public String getOptionsName()
Returns the name of the query options used for this query.
public void setOptionsName(String name)
Sets the name of the query options to be used for this query.
If no query options node with the specified name exists, the query will fail.
name - The name of the saved query options node on the server.public HashMap<String,String> getValuesMap()
Returns a HashMap of the named lexicon configurations.
The keys are the names of the lexicons, the values are the corresponding URIs on the server.
getValuesMap in interface ValuesListResultsCopyright © 2013-2017 MarkLogic Corporation.