public class ObjectDesc extends Object implements Encodable
ObjectStore.getObjects()
,
GetResultHandler
Constructor and Description |
---|
ObjectDesc(String ref,
OptString obj,
OptString failure)
JSON-driven constructor.
|
ObjectDesc(String ref,
String obj,
String failure)
Direct constructor.
|
Modifier and Type | Method and Description |
---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this object for transmission or persistence.
|
String |
failure()
Get the error message string.
|
String |
obj()
Get the requested object's description.
|
String |
ref()
Get the requested object's reference string.
|
@JSONMethod(value={"ref","obj","failure"}) public ObjectDesc(String ref, OptString obj, OptString failure)
ref
- Object reference of the object requested.obj
- Optional object description.failure
- Optional error message.public ObjectDesc(String ref, String obj, String failure)
ref
- Object reference of the object requested.obj
- Object description (a JSON string describing the object, if
the object was retrieved, or null if retrieval failed).failure
- Error message string if retrieval failed, or null if
retrieval succeeded.public JSONLiteral encode(EncodeControl control)
public String failure()
public String obj()
public String ref()
Copyright © 2017. All rights reserved.