org.eclipse.mylar.tasks.core
Class TaskComment

java.lang.Object
  extended by org.eclipse.mylar.tasks.core.AttributeContainer
      extended by org.eclipse.mylar.tasks.core.TaskComment
All Implemented Interfaces:
java.io.Serializable

public class TaskComment
extends AttributeContainer
implements java.io.Serializable

A comment posted on a bug.

Author:
Rob Elves (revisions for bug 136219)
See Also:
Serialized Form

Field Summary
private  int attachmentId
           
private  boolean hasAttachment
           
private  int number
          Comment's number
private static long serialVersionUID
           
 
Fields inherited from class org.eclipse.mylar.tasks.core.AttributeContainer
ERROR_NO_ATTRIBUTE_FACTORY
 
Constructor Summary
TaskComment(AbstractAttributeFactory attributeFactory, int num)
           
 
Method Summary
 int getAttachmentId()
           
 java.lang.String getAuthor()
          Get the author of the comment
 java.lang.String getAuthorName()
          Get the authors real name
 java.lang.String getCreated()
          Get the time that this comment was created
 int getNumber()
          Get this comment's number
 java.lang.String getText()
          Get the text contained in the comment
 boolean hasAttachment()
           
 void setAttachmentId(int attachmentID)
           
 void setHasAttachment(boolean b)
           
 
Methods inherited from class org.eclipse.mylar.tasks.core.AttributeContainer
addAttribute, addAttributeValue, getAttribute, getAttributes, getAttributeValue, getAttributeValues, removeAllAttributes, removeAttribute, setAttributeFactory, setAttributeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

number

private final int number
Comment's number


hasAttachment

private boolean hasAttachment

attachmentId

private int attachmentId
Constructor Detail

TaskComment

public TaskComment(AbstractAttributeFactory attributeFactory,
                   int num)
Method Detail

getNumber

public int getNumber()
Get this comment's number

Returns:
This comment's number

getCreated

public java.lang.String getCreated()
Get the time that this comment was created

Returns:
The comments creation timestamp

getAuthor

public java.lang.String getAuthor()
Get the author of the comment

Returns:
The comments author

getAuthorName

public java.lang.String getAuthorName()
Get the authors real name

Returns:
Returns author's name, or null if not known

getText

public java.lang.String getText()
Get the text contained in the comment

Returns:
The comments text

setHasAttachment

public void setHasAttachment(boolean b)

hasAttachment

public boolean hasAttachment()

setAttachmentId

public void setAttachmentId(int attachmentID)

getAttachmentId

public int getAttachmentId()