public class CommentElement extends Object implements MetadataElement, Serializable
| Constructor and Description |
|---|
CommentElement()
Default constructor
|
CommentElement(CommentElement template)
Copy/clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Return comparison result based on the content of the properties.
|
List<ElementStub> |
getAnsweredBy()
Return the list of comments that answer a question posed in this comment.
|
List<ElementStub> |
getAnswers()
Return the list of unique identifiers (guids) for comments that contain a question that this comment answers.
|
ElementHeader |
getElementHeader()
Return the element header associated with the properties.
|
CommentProperties |
getProperties()
Return the properties of the comment.
|
int |
hashCode()
Return hash code for this object
|
void |
setAnsweredBy(List<ElementStub> answeredBy)
Set up the list of comments that answer a question posed in this comment.
|
void |
setAnswers(List<ElementStub> answers)
Set up the list of comments that contain a question that this comment answers.
|
void |
setElementHeader(ElementHeader elementHeader)
Set up the element header associated with the properties.
|
void |
setProperties(CommentProperties properties)
Set up the comment properties.
|
String |
toString()
JSON-style toString
|
public CommentElement()
public CommentElement(CommentElement template)
template - object to copypublic ElementHeader getElementHeader()
getElementHeader in interface MetadataElementpublic void setElementHeader(ElementHeader elementHeader)
setElementHeader in interface MetadataElementelementHeader - element header objectpublic CommentProperties getProperties()
public void setProperties(CommentProperties properties)
properties - propertiespublic List<ElementStub> getAnsweredBy()
public void setAnsweredBy(List<ElementStub> answeredBy)
answeredBy - list of related commentspublic List<ElementStub> getAnswers()
public void setAnswers(List<ElementStub> answers)
answers - list of related commentspublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.