Skip to content

Commit caf3eea

Browse files
author
nwalsh
committed
Bug:19086 JavaDoc improvements
git-svn-id: svn+ssh://svn.marklogic.com/project/engsvn/client-api/java/trunk@113042 62cac252-8da6-4816-9e9d-6dc37b19578c
1 parent d2965a0 commit caf3eea

File tree

9 files changed

+173
-37
lines changed

9 files changed

+173
-37
lines changed

src/main/java/com/marklogic/client/io/OutputStreamHandle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public OutputStreamSender get() {
9797
/**
9898
* Assigns an output stream sender providing the callback that writes
9999
* content to the database via an output stream.
100-
* @param content the output stream sender
100+
* @param sender the output stream sender
101101
*/
102102
public void set(OutputStreamSender sender) {
103103
this.sender = sender;
104104
}
105105
/**
106106
* Assigns an output stream sender providing the callback that writes
107107
* content to the database and returns the handle as a fluent convenience.
108-
* @param content the output stream sender
108+
* @param sender the output stream sender
109109
* @return this handle
110110
*/
111111
public OutputStreamHandle with(OutputStreamSender sender) {

src/main/java/com/marklogic/client/io/QueryOptionsListHandle.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public class QueryOptionsListHandle
4949
private Marshaller marshaller;
5050
private Unmarshaller unmarshaller;
5151

52+
/**
53+
* The constructor.
54+
*/
5255
public QueryOptionsListHandle() {
5356
super();
5457
super.setFormat(Format.XML);

src/main/java/com/marklogic/client/io/SearchHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public String[] getFacetNames() {
255255
* Returns the query plan associated with this search.
256256
*
257257
* <p>Query plans are highly variable and are always returned as a DOM Document.</p>
258-
* @return
258+
* @return the plan as a DOM Document
259259
*/
260260
@Override
261261
public Document getPlan() {

src/main/java/com/marklogic/client/io/ValuesHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected void receiveContent(InputStream content) {
122122
*
123123
* <p>Calling this method always deletes any cached values.</p>
124124
*
125-
* @param querydef The new QueryDefinition
125+
* @param vdef The new ValuesDefinition
126126
*/
127127
public void setQueryCriteria(ValuesDefinition vdef) {
128128
valuesdef = vdef;

src/main/java/com/marklogic/client/io/ValuesListHandle.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public class ValuesListHandle
4646

4747
String optionsName = null;
4848

49+
/**
50+
* The constructor.
51+
*/
4952
public ValuesListHandle() {
5053
super();
5154
super.setFormat(Format.XML);
@@ -58,21 +61,47 @@ public ValuesListHandle() {
5861
}
5962
}
6063

64+
/**
65+
* Sets the format associated with this handle.
66+
*
67+
* This handle only supports XML.
68+
*
69+
* @param format The format, which must be Format.XML or an exception will be raised.
70+
*/
6171
@Override
6272
public void setFormat(Format format) {
6373
if (format != Format.XML)
6474
throw new IllegalArgumentException("ValuesListHandle supports the XML format only");
6575
}
6676

77+
/**
78+
* Fluent setter for the format associated with this handle.
79+
*
80+
* This handle only supports XML.
81+
*
82+
* @param format The format, which must be Format.XML or an exception will be raised.
83+
* @return The QueryOptionsListHandle instance on which this method was called.
84+
*/
6785
public ValuesListHandle withFormat(Format format) {
6886
setFormat(format);
6987
return this;
7088
}
7189

90+
/**
91+
* Returns the name of the query options used for this query.
92+
* @return The options name.
93+
*/
7294
public String getOptionsName() {
7395
return optionsName;
7496
}
7597

98+
/**
99+
* Sets the name of the query options to be used for this query.
100+
*
101+
* If no query options node with the specified name exists, the query will fail.
102+
*
103+
* @param name The name of the saved query options node on the server.
104+
*/
76105
public void setOptionsName(String name) {
77106
optionsName = name;
78107
}
@@ -97,6 +126,13 @@ protected void receiveContent(InputStream content) {
97126
}
98127
}
99128

129+
/**
130+
* Returns a HashMap of the named lexicon configurations.
131+
*
132+
* The keys are the names of the lexicons, the values are the corresponding URIs on the server.
133+
*
134+
* @return The map of names to URIs.
135+
*/
100136
@Override
101137
public HashMap<String, String> getValuesMap() {
102138
return valuesHolder.getValuesMap();

0 commit comments

Comments
 (0)