public class XMLCommentList extends java.lang.Object implements ParagraphElement
Modifier and Type | Class and Description |
---|---|
static class |
XMLCommentList.ArticleComments
The review elements for one article.
|
TYPE_NONE
Modifier and Type | Method and Description |
---|---|
void |
addComment(XMLArticle article,
XMLComment comment)
Add a comment reference.
|
void |
addTODO(XMLArticle article,
TodoElement todo)
Add a comment reference.
|
java.util.Map<java.lang.String,XMLCommentList.ArticleComments> |
getComments()
Return the comments sorted by article id.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
static XMLCommentList |
getInstance() |
XMLList |
getList()
Return the comment list as a "ol" element.
|
boolean |
hasComments()
Return true if there are comments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
public static XMLCommentList getInstance()
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public XMLList getList()
public java.util.Map<java.lang.String,XMLCommentList.ArticleComments> getComments()
public boolean hasComments()
public void addComment(XMLArticle article, XMLComment comment)
article
- the article where there is the commentcomment
- the commentpublic void addTODO(XMLArticle article, TodoElement todo)
article
- the article where there is the commenttodo
- the todoCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence