Compartir a través de


Serializable Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.provisioning.service.configs.Serializable

Implements

java.io.Serializable

public abstract class Serializable
implements java.io.Serializable

Abstract class with the parser for the provisioning configurations.

Constructor Summary

Constructor Description
Serializable()

Method Summary

Modifier and Type Method and Description
java.lang.String toJson()

Serializer

protected abstract com.google.gson.JsonElement toJsonElement()
java.lang.String toString()

Creates a pretty print JSON with the content of the child class and subclasses.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Serializable

public Serializable()

Method Details

toJson

public String toJson()

Serializer

Creates a String, which the content represents the information in the child class and its subclasses in a JSON format.

Returns:

The String with the JSON.

toJsonElement

protected abstract JsonElement toJsonElement()

toString

public String toString()

Creates a pretty print JSON with the content of the child class and subclasses.

Overrides:

Serializable.toString()

Returns:

The String with the pretty print JSON.

Applies to