|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Comment
Field Summary |
Fields inherited from interface org.blojsom.blog.Response |
COMMENT_TYPE, PINGBACK_TYPE, TRACKBACK_TYPE |
Method Summary | |
java.lang.String |
getAuthor()
Get the author of the comment |
java.lang.String |
getAuthorEmail()
Get the e-mail of the author of the comment |
java.lang.String |
getAuthorURL()
Get the URL of the author |
java.lang.Integer |
getBlogEntryId()
Get the blog entry ID |
java.lang.Integer |
getBlogId()
Get the blog ID |
java.lang.String |
getComment()
Get the comment |
java.util.Date |
getCommentDate()
Get the date the comment was entered |
java.lang.String |
getDateAsFormat(java.lang.String format)
Return the comment date formatted with a specified date format |
java.lang.String |
getDateAsFormat(java.lang.String format,
java.util.Locale locale)
Return the comment date formatted with a specified date format |
Entry |
getEntry()
Retrieve the Entry associated with this comment |
java.lang.String |
getEscapedAuthor()
Get the author as an escaped string |
java.lang.String |
getEscapedAuthorEmail()
Get the escaped e-mail of the author of the comment |
java.lang.String |
getEscapedAuthorURL()
Get the escaped URL of the author |
java.lang.String |
getEscapedComment()
Get the comment as a escaped string |
java.lang.Integer |
getId()
Get the comment ID |
java.lang.String |
getISO8601Date()
Return an ISO 8601 style date http://www.w3.org/TR/NOTE-datetime |
java.util.Map |
getMetaData()
Get the comment meta-data |
java.lang.Integer |
getParentId()
Get the comment parent ID |
java.lang.String |
getRFC822Date()
Return an RFC 822 style date |
void |
setAuthor(java.lang.String author)
Set the author of the comment |
void |
setAuthorEmail(java.lang.String authorEmail)
Set the e-mail of the author of the comment |
void |
setAuthorURL(java.lang.String authorURL)
Set the URL for the author |
void |
setBlogEntryId(java.lang.Integer blogEntryId)
Set the blog entry ID |
void |
setBlogId(java.lang.Integer blogId)
Set the blog ID |
void |
setComment(java.lang.String comment)
Set the new comment |
void |
setCommentDate(java.util.Date commentDate)
Set the date for the comment |
void |
setEntry(Entry entry)
Set the Entry associated with this comment |
void |
setId(java.lang.Integer id)
Set the comment ID |
void |
setMetaData(java.util.Map metaData)
Set the comment meta-data |
void |
setParentId(java.lang.Integer parentId)
Set the comment parent ID |
Methods inherited from interface org.blojsom.blog.Response |
getDate, getIp, getStatus, getType, setIp, setStatus |
Method Detail |
public void setId(java.lang.Integer id)
id
- Comment IDpublic java.lang.Integer getId()
public void setBlogId(java.lang.Integer blogId)
blogId
- Blog IDpublic java.lang.Integer getBlogId()
public java.lang.Integer getBlogEntryId()
public void setBlogEntryId(java.lang.Integer blogEntryId)
blogEntryId
- Blog entry IDpublic java.lang.String getAuthor()
public java.lang.String getEscapedAuthor()
public void setAuthor(java.lang.String author)
author
- Comment's new authorpublic java.lang.String getAuthorEmail()
public java.lang.String getEscapedAuthorEmail()
public void setAuthorEmail(java.lang.String authorEmail)
authorEmail
- Author's new e-mailpublic java.lang.String getAuthorURL()
public java.lang.String getEscapedAuthorURL()
public void setAuthorURL(java.lang.String authorURL)
authorURL
- New URL for the authorpublic java.lang.String getEscapedComment()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- New commentpublic java.util.Date getCommentDate()
public java.lang.String getISO8601Date()
public java.lang.String getRFC822Date()
public java.util.Map getMetaData()
Map
public void setCommentDate(java.util.Date commentDate)
commentDate
- Comment datepublic void setMetaData(java.util.Map metaData)
metaData
- Map
containing meta-data for this commentpublic java.lang.String getDateAsFormat(java.lang.String format)
format
- Date format
null
if the comment date or format is null, otherwise returns the comment date
formatted to the specified format. If the format is invalid, returns commentDate.toString()public java.lang.String getDateAsFormat(java.lang.String format, java.util.Locale locale)
format
- Date formatlocale
- Locale for date formatting
null
if the entry date or format is null, otherwise returns the entry date formatted to the specified format. If the format is invalid, returns commentDate.toString()public Entry getEntry()
Entry
associated with this comment
Entry
entrypublic void setEntry(Entry entry)
Entry
associated with this comment
entry
- Entry
public java.lang.Integer getParentId()
public void setParentId(java.lang.Integer parentId)
parentId
- Comment parent ID
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |