public class NoteComment extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NoteComment.Action
Every comment has an associated action.
|
Modifier and Type | Field and Description |
---|---|
private NoteComment.Action |
action |
private java.util.Date |
commentTimestamp |
private java.lang.Boolean |
isNew |
private java.lang.String |
text |
private User |
user |
Constructor and Description |
---|
NoteComment(java.util.Date createDate,
User user,
java.lang.String commentText,
NoteComment.Action action,
java.lang.Boolean isNew) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCommentTimestamp() |
java.lang.Boolean |
getIsNew() |
NoteComment.Action |
getNoteAction() |
java.lang.String |
getText() |
User |
getUser() |
void |
setIsNew(java.lang.Boolean isNew) |
private java.lang.String text
private java.util.Date commentTimestamp
private NoteComment.Action action
private java.lang.Boolean isNew
public NoteComment(java.util.Date createDate, User user, java.lang.String commentText, NoteComment.Action action, java.lang.Boolean isNew)
createDate
- The time at which this comment was addeduser
- JOSM User object of the user who created the commentcommentText
- The text left by the user. Is sometimes blankaction
- The action associated with this commentisNew
- Whether or not this comment is new and needs to be uploadedpublic java.lang.String getText()
public java.util.Date getCommentTimestamp()
public NoteComment.Action getNoteAction()
public void setIsNew(java.lang.Boolean isNew)
public java.lang.Boolean getIsNew()