Class UpdateComponentConfigRequest.Property
- java.lang.Object
-
- io.openems.common.jsonrpc.request.UpdateComponentConfigRequest.Property
-
- Enclosing class:
- UpdateComponentConfigRequest
public static class UpdateComponentConfigRequest.Property extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Property(java.lang.String name, boolean value)
Property(java.lang.String name, com.google.gson.JsonElement value)
Initializes a Property.Property(java.lang.String name, java.lang.Number value)
Property(java.lang.String name, java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.util.List<UpdateComponentConfigRequest.Property>
from(com.google.gson.JsonArray j)
java.lang.String
getName()
Gets the Name.com.google.gson.JsonElement
getValue()
Gets the Value.protected com.google.gson.JsonObject
toJson()
-
-
-
Constructor Detail
-
Property
public Property(java.lang.String name, com.google.gson.JsonElement value)
Initializes a Property.- Parameters:
name
- the Property namevalue
- the new value
-
Property
public Property(java.lang.String name, java.lang.String value)
-
Property
public Property(java.lang.String name, boolean value)
-
Property
public Property(java.lang.String name, java.lang.Number value)
-
-
Method Detail
-
from
protected static java.util.List<UpdateComponentConfigRequest.Property> from(com.google.gson.JsonArray j) throws OpenemsError.OpenemsNamedException
-
getName
public java.lang.String getName()
Gets the Name.- Returns:
- Name
-
getValue
public com.google.gson.JsonElement getValue()
Gets the Value.- Returns:
- Value
-
toJson
protected com.google.gson.JsonObject toJson()
-
-