public static class Storefront.Collection extends <any> implements Storefront.Node
| Constructor and Description |
|---|
Collection() |
Collection(ID id) |
Collection(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Stripped description of the collection, single line with HTML tags removed.
|
java.lang.String |
getDescriptionHtml()
The description of the collection, complete with HTML formatting.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getHandle()
A human-friendly unique string for the collection automatically generated from its title.
|
ID |
getId()
Globally unique identifier.
|
Storefront.Image |
getImage()
Image associated with the collection.
|
Storefront.ProductConnection |
getProducts()
List of products in the collection.
|
java.lang.String |
getTitle()
The collection’s name.
|
DateTime |
getUpdatedAt()
The date and time when the collection was last modified.
|
Storefront.Collection |
setDescription(java.lang.String arg) |
Storefront.Collection |
setDescriptionHtml(java.lang.String arg) |
Storefront.Collection |
setHandle(java.lang.String arg) |
Storefront.Collection |
setImage(Storefront.Image arg) |
Storefront.Collection |
setProducts(Storefront.ProductConnection arg) |
Storefront.Collection |
setTitle(java.lang.String arg) |
Storefront.Collection |
setUpdatedAt(DateTime arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public Collection()
public Collection(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic Collection(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.Nodepublic java.lang.String getDescription()
public Storefront.Collection setDescription(java.lang.String arg)
public java.lang.String getDescriptionHtml()
public Storefront.Collection setDescriptionHtml(java.lang.String arg)
public java.lang.String getHandle()
public Storefront.Collection setHandle(java.lang.String arg)
public ID getId()
getId in interface Storefront.Nodepublic Storefront.Image getImage()
public Storefront.Collection setImage(Storefront.Image arg)
public Storefront.ProductConnection getProducts()
public Storefront.Collection setProducts(Storefront.ProductConnection arg)
public java.lang.String getTitle()
public Storefront.Collection setTitle(java.lang.String arg)
public DateTime getUpdatedAt()
public Storefront.Collection setUpdatedAt(DateTime arg)
public boolean unwrapsToObject(java.lang.String key)