152 строки
14 KiB
YAML
152 строки
14 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject"
|
|
name: "GsonJsonObject"
|
|
nameWithType: "GsonJsonObject"
|
|
summary: "Implementation of <xref uid=\"com.azure.json.models.JsonElement\" data-throw-if-not-resolved=\"false\" data-raw-source=\"com.azure.json.models.JsonElement\"></xref> which is backed by GSON's <xref uid=\"com.google.gson.JsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject\"></xref>."
|
|
inheritances:
|
|
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
|
|
- "<xref href=\"com.azure.json.models.JsonElement?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
|
|
inheritedClassMethods:
|
|
- classRef: "<xref href=\"com.azure.json.models.JsonElement?alt=com.azure.json.models.JsonElement&text=JsonElement\" data-throw-if-not-resolved=\"False\" />"
|
|
methodsRef:
|
|
- "<xref href=\"com.azure.json.models.JsonElement.isArray()?alt=com.azure.json.models.JsonElement.isArray&text=isArray\" data-throw-if-not-resolved=\"False\" />"
|
|
- "<xref href=\"com.azure.json.models.JsonElement.isBoolean()?alt=com.azure.json.models.JsonElement.isBoolean&text=isBoolean\" data-throw-if-not-resolved=\"False\" />"
|
|
- "<xref href=\"com.azure.json.models.JsonElement.isNull()?alt=com.azure.json.models.JsonElement.isNull&text=isNull\" data-throw-if-not-resolved=\"False\" />"
|
|
- "<xref href=\"com.azure.json.models.JsonElement.isNumber()?alt=com.azure.json.models.JsonElement.isNumber&text=isNumber\" data-throw-if-not-resolved=\"False\" />"
|
|
- "<xref href=\"com.azure.json.models.JsonElement.isObject()?alt=com.azure.json.models.JsonElement.isObject&text=isObject\" data-throw-if-not-resolved=\"False\" />"
|
|
- "<xref href=\"com.azure.json.models.JsonElement.isString()?alt=com.azure.json.models.JsonElement.isString&text=isString\" data-throw-if-not-resolved=\"False\" />"
|
|
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
|
|
methodsRef:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
|
|
syntax: "public final class **GsonJsonObject**</br> extends <xref href=\"com.azure.json.models.JsonElement?alt=com.azure.json.models.JsonElement&text=JsonElement\" data-throw-if-not-resolved=\"False\" />"
|
|
constructors:
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.GsonJsonObject()"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.GsonJsonObject()"
|
|
name: "GsonJsonObject()"
|
|
nameWithType: "GsonJsonObject.GsonJsonObject()"
|
|
summary: "Creates a new <xref uid=\"com.azure.core.serializer.json.gson.models.GsonJsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GsonJsonObject\"></xref> using the default <xref uid=\"com.google.gson.JsonObject.JsonObject*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject#JsonObject()\"></xref>."
|
|
syntax: "public GsonJsonObject()"
|
|
desc: "Creates a new <xref uid=\"com.azure.core.serializer.json.gson.models.GsonJsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GsonJsonObject\"></xref> using the default <xref uid=\"com.google.gson.JsonObject.JsonObject*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject#JsonObject()\"></xref>."
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.GsonJsonObject(com.google.gson.JsonObject)"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.GsonJsonObject(JsonObject object)"
|
|
name: "GsonJsonObject(JsonObject object)"
|
|
nameWithType: "GsonJsonObject.GsonJsonObject(JsonObject object)"
|
|
summary: "Creates a new <xref uid=\"com.azure.core.serializer.json.gson.models.GsonJsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GsonJsonObject\"></xref> using the provided <xref uid=\"com.google.gson.JsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject\"></xref>."
|
|
parameters:
|
|
- description: "The <xref uid=\"com.google.gson.JsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject\"></xref> to use as the backing object."
|
|
name: "object"
|
|
type: "<xref href=\"com.google.gson.JsonObject?alt=com.google.gson.JsonObject&text=JsonObject\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public GsonJsonObject(JsonObject object)"
|
|
desc: "Creates a new <xref uid=\"com.azure.core.serializer.json.gson.models.GsonJsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GsonJsonObject\"></xref> using the provided <xref uid=\"com.google.gson.JsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject\"></xref>."
|
|
methods:
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.fromJson(com.azure.json.JsonReader)"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.fromJson(JsonReader jsonReader)"
|
|
name: "fromJson(JsonReader jsonReader)"
|
|
nameWithType: "GsonJsonObject.fromJson(JsonReader jsonReader)"
|
|
summary: "Deserializes a JSON object from a Json<wbr>Reader."
|
|
modifiers:
|
|
- "static"
|
|
parameters:
|
|
- description: "The JsonReader to deserialize from."
|
|
name: "jsonReader"
|
|
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public static GsonJsonObject fromJson(JsonReader jsonReader)"
|
|
exceptions:
|
|
- description: "If an error occurs while deserializing the JSON object."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
|
|
desc: "Deserializes a JSON object from a JsonReader.\n\nIf the JsonReader's current token is null, it is assumed the JsonReader hasn't begun reading and <xref uid=\"com.azure.json.JsonReader.nextToken*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader#nextToken()\"></xref> will be called to begin reading.\n\nAfter ensuring the JsonReader has begun reading, if the current token is not <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonToken#START_OBJECT\"></xref>, an <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"IllegalStateException\"></xref> will be thrown. Otherwise, a JSON object representing the object will be created and returned."
|
|
returns:
|
|
description: "The deserialized JSON object."
|
|
type: "<xref href=\"com.azure.core.serializer.json.gson.models.GsonJsonObject?alt=com.azure.core.serializer.json.gson.models.GsonJsonObject&text=GsonJsonObject\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.getProperty(java.lang.String)"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.getProperty(String key)"
|
|
name: "getProperty(String key)"
|
|
nameWithType: "GsonJsonObject.getProperty(String key)"
|
|
summary: "Gets the Json<wbr>Element value corresponding to the specified key."
|
|
parameters:
|
|
- description: "The key of the property to get."
|
|
name: "key"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public JsonElement getProperty(String key)"
|
|
desc: "Gets the JsonElement value corresponding to the specified key. If the key doesn't exist, null will be returned."
|
|
returns:
|
|
description: "The JsonElement value corresponding to the specified key, or null if the property doesn't exist."
|
|
type: "<xref href=\"com.google.gson.JsonElement?alt=com.google.gson.JsonElement&text=JsonElement\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.isObject()"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.isObject()"
|
|
name: "isObject()"
|
|
nameWithType: "GsonJsonObject.isObject()"
|
|
overridden: "com.azure.json.models.JsonElement.isObject()"
|
|
syntax: "public boolean isObject()"
|
|
returns:
|
|
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.removeProperty(java.lang.String)"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.removeProperty(String key)"
|
|
name: "removeProperty(String key)"
|
|
nameWithType: "GsonJsonObject.removeProperty(String key)"
|
|
summary: "Removes the Json<wbr>Element value corresponding to the specified key."
|
|
parameters:
|
|
- description: "The key of the property to remove."
|
|
name: "key"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public JsonElement removeProperty(String key)"
|
|
desc: "Removes the JsonElement value corresponding to the specified key. If the key doesn't exist, null will be returned."
|
|
returns:
|
|
description: "The JsonElement value corresponding to the specified key, or null if the property doesn't exist."
|
|
type: "<xref href=\"com.google.gson.JsonElement?alt=com.google.gson.JsonElement&text=JsonElement\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.setProperty(java.lang.String,com.google.gson.JsonElement)"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.setProperty(String key, JsonElement element)"
|
|
name: "setProperty(String key, JsonElement element)"
|
|
nameWithType: "GsonJsonObject.setProperty(String key, JsonElement element)"
|
|
summary: "Sets the Json<wbr>Element value corresponding to the specified key."
|
|
parameters:
|
|
- description: "The key of the property to set."
|
|
name: "key"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- description: "The JsonElement value to set the property to."
|
|
name: "element"
|
|
type: "<xref href=\"com.google.gson.JsonElement?alt=com.google.gson.JsonElement&text=JsonElement\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public GsonJsonObject setProperty(String key, JsonElement element)"
|
|
desc: "Sets the JsonElement value corresponding to the specified key. If the key already exists, the value will be overwritten."
|
|
returns:
|
|
description: "The updated GsonJsonObject object."
|
|
type: "<xref href=\"com.azure.core.serializer.json.gson.models.GsonJsonObject?alt=com.azure.core.serializer.json.gson.models.GsonJsonObject&text=GsonJsonObject\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.size()"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.size()"
|
|
name: "size()"
|
|
nameWithType: "GsonJsonObject.size()"
|
|
summary: "The number of properties in the JSON object."
|
|
syntax: "public int size()"
|
|
desc: "The number of properties in the JSON object."
|
|
returns:
|
|
description: "The number of properties in the JSON object."
|
|
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.serializer.json.gson.models.GsonJsonObject.toJson(com.azure.json.JsonWriter)"
|
|
fullName: "com.azure.core.serializer.json.gson.models.GsonJsonObject.toJson(JsonWriter jsonWriter)"
|
|
name: "toJson(JsonWriter jsonWriter)"
|
|
nameWithType: "GsonJsonObject.toJson(JsonWriter jsonWriter)"
|
|
parameters:
|
|
- name: "jsonWriter"
|
|
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
|
|
exceptions:
|
|
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
|
|
returns:
|
|
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
|
|
type: "class"
|
|
desc: "Implementation of <xref uid=\"com.azure.json.models.JsonElement\" data-throw-if-not-resolved=\"false\" data-raw-source=\"com.azure.json.models.JsonElement\"></xref> which is backed by GSON's <xref uid=\"com.google.gson.JsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject\"></xref>.\n\nThis allows for using GSON's <xref uid=\"com.google.gson.JsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject\"></xref> in places where <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"com.azure.json.models.JsonObject\"></xref> is required, meaning the GSON <xref uid=\"com.google.gson.JsonObject\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonObject\"></xref> doesn't need to be converted to azure-json's <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"com.azure.json.models.JsonObject\"></xref>."
|
|
metadata: {}
|
|
package: "com.azure.core.serializer.json.gson.models"
|
|
artifact: com.azure:azure-core-serializer-json-gson:1.3.3
|