public static class Storefront.Metaobject extends AbstractResponse<Storefront.Metaobject> implements Storefront.MetafieldReference, Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
Metaobject() |
Metaobject(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.MetaobjectField |
getField()
Accesses a field of the object by key.
|
java.util.List<Storefront.MetaobjectField> |
getFields()
All object fields with defined values.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getHandle()
The unique handle of the metaobject.
|
ID |
getId()
A globally-unique identifier.
|
java.lang.String |
getType()
The type of the metaobject.
|
DateTime |
getUpdatedAt()
The date and time when the metaobject was last updated.
|
Storefront.Metaobject |
setField(Storefront.MetaobjectField arg) |
Storefront.Metaobject |
setFields(java.util.List<Storefront.MetaobjectField> arg) |
Storefront.Metaobject |
setHandle(java.lang.String arg) |
Storefront.Metaobject |
setType(java.lang.String arg) |
Storefront.Metaobject |
setUpdatedAt(DateTime arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Metaobject()
public Metaobject(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.MetafieldReferencegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic Storefront.MetaobjectField getField()
public Storefront.Metaobject setField(Storefront.MetaobjectField arg)
public java.util.List<Storefront.MetaobjectField> getFields()
public Storefront.Metaobject setFields(java.util.List<Storefront.MetaobjectField> arg)
public java.lang.String getHandle()
public Storefront.Metaobject setHandle(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic java.lang.String getType()
public Storefront.Metaobject setType(java.lang.String arg)
public DateTime getUpdatedAt()
public Storefront.Metaobject setUpdatedAt(DateTime arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Metaobject>