public static class Storefront.Article extends <any> implements Storefront.Node
| Constructor and Description |
|---|
Article() |
Article(ID id) |
Article(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.ArticleAuthor |
getAuthor()
Deprecated.
Use `authorV2` instead
|
Storefront.ArticleAuthor |
getAuthorV2()
The article's author.
|
Storefront.Blog |
getBlog()
The blog that the article belongs to.
|
Storefront.CommentConnection |
getComments()
List of comments posted on the article.
|
java.lang.String |
getContent()
Stripped content of the article, single line with HTML tags removed.
|
java.lang.String |
getContentHtml()
The content of the article, complete with HTML formatting.
|
java.lang.String |
getExcerpt()
Stripped excerpt of the article, single line with HTML tags removed.
|
java.lang.String |
getExcerptHtml()
The excerpt of the article, complete with HTML formatting.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getHandle()
A human-friendly unique string for the Article automatically generated from its title.
|
ID |
getId()
Globally unique identifier.
|
Storefront.Image |
getImage()
The image associated with the article.
|
DateTime |
getPublishedAt()
The date and time when the article was published.
|
Storefront.SEO |
getSeo()
The article’s SEO information.
|
java.util.List<java.lang.String> |
getTags()
A categorization that a article can be tagged with.
|
java.lang.String |
getTitle()
The article’s name.
|
java.lang.String |
getUrl()
The url pointing to the article accessible from the web.
|
Storefront.Article |
setAuthor(Storefront.ArticleAuthor arg) |
Storefront.Article |
setAuthorV2(Storefront.ArticleAuthor arg) |
Storefront.Article |
setBlog(Storefront.Blog arg) |
Storefront.Article |
setComments(Storefront.CommentConnection arg) |
Storefront.Article |
setContent(java.lang.String arg) |
Storefront.Article |
setContentHtml(java.lang.String arg) |
Storefront.Article |
setExcerpt(java.lang.String arg) |
Storefront.Article |
setExcerptHtml(java.lang.String arg) |
Storefront.Article |
setHandle(java.lang.String arg) |
Storefront.Article |
setImage(Storefront.Image arg) |
Storefront.Article |
setPublishedAt(DateTime arg) |
Storefront.Article |
setSeo(Storefront.SEO arg) |
Storefront.Article |
setTags(java.util.List<java.lang.String> arg) |
Storefront.Article |
setTitle(java.lang.String arg) |
Storefront.Article |
setUrl(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public Article()
public Article(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic Article(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.Nodepublic Storefront.ArticleAuthor getAuthor()
public Storefront.Article setAuthor(Storefront.ArticleAuthor arg)
public Storefront.ArticleAuthor getAuthorV2()
public Storefront.Article setAuthorV2(Storefront.ArticleAuthor arg)
public Storefront.Blog getBlog()
public Storefront.Article setBlog(Storefront.Blog arg)
public Storefront.CommentConnection getComments()
public Storefront.Article setComments(Storefront.CommentConnection arg)
public java.lang.String getContent()
public Storefront.Article setContent(java.lang.String arg)
public java.lang.String getContentHtml()
public Storefront.Article setContentHtml(java.lang.String arg)
public java.lang.String getExcerpt()
public Storefront.Article setExcerpt(java.lang.String arg)
public java.lang.String getExcerptHtml()
public Storefront.Article setExcerptHtml(java.lang.String arg)
public java.lang.String getHandle()
public Storefront.Article setHandle(java.lang.String arg)
public ID getId()
getId in interface Storefront.Nodepublic Storefront.Image getImage()
public Storefront.Article setImage(Storefront.Image arg)
public DateTime getPublishedAt()
public Storefront.Article setPublishedAt(DateTime arg)
public Storefront.SEO getSeo()
public Storefront.Article setSeo(Storefront.SEO arg)
public java.util.List<java.lang.String> getTags()
public Storefront.Article setTags(java.util.List<java.lang.String> arg)
public java.lang.String getTitle()
public Storefront.Article setTitle(java.lang.String arg)
public java.lang.String getUrl()
public Storefront.Article setUrl(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)