public static class Storefront.Metaobject extends AbstractResponse<Storefront.Metaobject> implements Storefront.MenuItemResource, Storefront.MetafieldReference, Storefront.Node, Storefront.OnlineStorePublishable
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 ID.
|
java.lang.String |
getOnlineStoreUrl()
The URL used for viewing the metaobject on the shop's Online Store.
|
Storefront.MetaobjectSEO |
getSeo()
The metaobject's SEO information.
|
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 |
setOnlineStoreUrl(java.lang.String arg) |
Storefront.Metaobject |
setSeo(Storefront.MetaobjectSEO 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.MenuItemResourcegetGraphQlTypeName in interface Storefront.MetafieldReferencegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Storefront.OnlineStorePublishablegetGraphQlTypeName 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 getOnlineStoreUrl()
getOnlineStoreUrl in interface Storefront.OnlineStorePublishablepublic Storefront.Metaobject setOnlineStoreUrl(java.lang.String arg)
public Storefront.MetaobjectSEO getSeo()
public Storefront.Metaobject setSeo(Storefront.MetaobjectSEO arg)
public 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>