public class JsonableTranslator extends DocumentReferenceTranslator implements JsonTranslator
JSONABLE_TYPEEMPTY_STRING| Constructor and Description |
|---|
JsonableTranslator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
fromJson(org.json.JSONObject json,
java.lang.String type) |
org.json.JSONObject |
toJson(java.lang.Object obj) |
java.lang.Object |
toObject(java.lang.String str,
java.lang.String type)
toObject converts String to DocumentReference,
whereas this methods deserializes to actual object
|
java.lang.String |
toString(java.lang.Object obj,
java.lang.String variableType)
toString converts DocumentReference to string,
whereas this method serializes the actual object to string
|
toObject, toStringgetPackage, setPackageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateJsonable, getPackageisDocumentReferenceVariablepublic java.lang.Object toObject(java.lang.String str,
java.lang.String type)
throws TranslationException
DocumentReferenceTranslatortoObject in class DocumentReferenceTranslatorstr - string representationtype - document runtime typeTranslationExceptionpublic java.lang.String toString(java.lang.Object obj,
java.lang.String variableType)
throws TranslationException
DocumentReferenceTranslatortoString in class DocumentReferenceTranslatorobj - document objectvariableType - declared variable typeTranslationExceptionpublic org.json.JSONObject toJson(java.lang.Object obj)
throws TranslationException
toJson in interface JsonTranslatorTranslationExceptionpublic java.lang.Object fromJson(org.json.JSONObject json,
java.lang.String type)
throws TranslationException
fromJson in interface JsonTranslatorTranslationExceptionCopyright © 2019 CenturyLink, Inc.