public static class Storefront.Attribute extends AbstractResponse<Storefront.Attribute>
optimisticData, responseData| Constructor and Description |
|---|
Attribute() |
Attribute(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getKey()
Key or name of the attribute.
|
java.lang.String |
getValue()
Value of the attribute.
|
Storefront.Attribute |
setKey(java.lang.String arg) |
Storefront.Attribute |
setValue(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Attribute()
public Attribute(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.String getKey()
public Storefront.Attribute setKey(java.lang.String arg)
public java.lang.String getValue()
public Storefront.Attribute setValue(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Attribute>