ConfigurationContentParser Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.deps.serializer.ConfigurationContentParser

public class ConfigurationContentParser

Constructor Summary

Constructor Description
ConfigurationContentParser()

Empty constructor: Used only to keep GSON happy.

ConfigurationContentParser(String json)

Constructor for an ConfigurationContentParser that is built using the provided json

Method Summary

Modifier and Type Method and Description
java.util.Map<java.lang.String,java.lang.Object> getDeviceContent()

Getter for deviceContent

java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getModulesContent()

Getter for modulesContent

void setDeviceContent(Map<String,Object> deviceContent)

Setter for deviceContent

void setModulesContent(Map<String,Map<String,Object>> modulesContent)

Setter for modulesContent

java.lang.String toJson()
com.google.gson.JsonElement toJsonElement()

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

ConfigurationContentParser

public ConfigurationContentParser()

Empty constructor: Used only to keep GSON happy.

ConfigurationContentParser

public ConfigurationContentParser(String json)

Constructor for an ConfigurationContentParser that is built using the provided json

Parameters:

json - the json string to build the ConfigurationContentParser out of

Method Details

getDeviceContent

public Map getDeviceContent()

Getter for deviceContent

Returns:

The value of queries

getModulesContent

public Map> getModulesContent()

Getter for modulesContent

Returns:

The value of modulesContent

setDeviceContent

public void setDeviceContent(Map deviceContent)

Setter for deviceContent

Parameters:

deviceContent - the value to set deviceContent to

setModulesContent

public void setModulesContent(Map> modulesContent)

Setter for modulesContent

Parameters:

modulesContent - the value to set results to

toJson

public String toJson()

toJsonElement

public JsonElement toJsonElement()

Applies to