org.apache.aries.samples.blog.biz
Class BlogCommentImpl

java.lang.Object
  extended by org.apache.aries.samples.blog.biz.BlogCommentImpl
All Implemented Interfaces:
BlogComment

public class BlogCommentImpl
extends Object
implements BlogComment


Constructor Summary
BlogCommentImpl(Comment c)
           
 
Method Summary
 BlogAuthor getAuthor()
          Get the author of the comment
 String getComment()
          Get comment
 String getCommentCreationDate()
          Get the creation date for the comment
 BlogEntry getEntry()
          Get the parent blog post for the comment
 int getId()
          Get the Id value of the comment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogCommentImpl

public BlogCommentImpl(Comment c)
Method Detail

getComment

public String getComment()
Get comment

Specified by:
getComment in interface BlogComment
Returns:
the String representing the comment

getAuthor

public BlogAuthor getAuthor()
Get the author of the comment

Specified by:
getAuthor in interface BlogComment
Returns:
the BlogAuthor instance

getEntry

public BlogEntry getEntry()
Get the parent blog post for the comment

Specified by:
getEntry in interface BlogComment
Returns:
the BlogPost instance the comment is attached to.

getId

public int getId()
Get the Id value of the comment

Specified by:
getId in interface BlogComment
Returns:
the integer id of the comment

getCommentCreationDate

public String getCommentCreationDate()
Get the creation date for the comment

Specified by:
getCommentCreationDate in interface BlogComment
Returns:
the String representation of the date the comment was created in dd-mm-yyyy format.


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.