public class RequestDesc extends Object implements Encodable
ObjectStore.getObjects()| Constructor and Description |
|---|
RequestDesc(String ref,
OptString collectionName,
OptBoolean contents)
JSON-driven constructor.
|
RequestDesc(String ref,
String collectionName,
boolean contents)
Direct constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
collectionName()
Get the name of the collection being queried, or null if it's to be the
default.
|
boolean |
contents()
Get the value of the contents flag.
|
JSONLiteral |
encode(EncodeControl control)
Encode this object for transmission or persistence.
|
String |
ref()
Get the reference string of the requested object.
|
@JSONMethod(value={"ref","coll","contents"}) public RequestDesc(String ref, OptString collectionName, OptBoolean contents)
ref - Reference string identifying the object requested.collectionName - Name of collection to get from, or null to take
the configured default.contents - If true, retrieve the referenced object and any objects
it contains; if false (the default if omitted), only retrieve the
referenced object itself.public RequestDesc(String ref, String collectionName, boolean contents)
ref - Reference string identifying the object requested.collectionName - Name of collection to get from, or null to take
the configured default.contents - If true, retrieve the referenced object and any objects
it contains; if false, only retrieve the referenced object itself.public String collectionName()
public boolean contents()
public JSONLiteral encode(EncodeControl control)
public String ref()
Copyright © 2017. All rights reserved.