public static class Storefront.Comment extends <any> implements Storefront.Node
| Constructor and Description |
|---|
Comment() |
Comment(ID id) |
Comment(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.CommentAuthor |
getAuthor()
The comment’s author.
|
java.lang.String |
getContent()
Stripped content of the comment, single line with HTML tags removed.
|
java.lang.String |
getContentHtml()
The content of the comment, complete with HTML formatting.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
Globally unique identifier.
|
Storefront.Comment |
setAuthor(Storefront.CommentAuthor arg) |
Storefront.Comment |
setContent(java.lang.String arg) |
Storefront.Comment |
setContentHtml(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public Comment()
public Comment(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic Comment(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.Nodepublic Storefront.CommentAuthor getAuthor()
public Storefront.Comment setAuthor(Storefront.CommentAuthor arg)
public java.lang.String getContent()
public Storefront.Comment setContent(java.lang.String arg)
public java.lang.String getContentHtml()
public Storefront.Comment setContentHtml(java.lang.String arg)
public ID getId()
getId in interface Storefront.Nodepublic boolean unwrapsToObject(java.lang.String key)