public class Note extends DataWithExtAttributes
| Modifier and Type | Class and Description |
|---|---|
static class |
Note.AppliesTo
Types of object a note can apply to.
|
| Constructor and Description |
|---|
Note()
Creates a new empty
Note object. |
Note(Note original)
Copy constructor.
|
Note(java.lang.String content)
Creates a new
Note object with a content with a scope set to Note.AppliesTo.UNDEFINED. |
Note(java.lang.String content,
Note.AppliesTo appliesTo)
Creates a new
Note object with a content and a scope. |
| Modifier and Type | Method and Description |
|---|---|
Note.AppliesTo |
getAppliesTo()
Gets the type of object this note applies to.
|
java.lang.String |
getCategory()
Gets the category for this note.
|
java.lang.String |
getId()
Gets the id for this note.
|
int |
getPriority()
Gets the priority for this note.
|
java.lang.String |
getText()
Gets the text content of this note.
|
boolean |
isEmpty()
Indicates if this note is empty, that is if the content is null or empty.
|
void |
setAppliesTo(Note.AppliesTo appliesTo)
Sets the type of object this note applies to.
|
void |
setCategory(java.lang.String category)
Sets the category for this note.
|
void |
setId(java.lang.String id)
Sets the id for this note.
|
void |
setPriority(int priority)
Sets the priority for this note.
|
void |
setText(java.lang.String content)
Sets the content of this note.
|
java.lang.String |
toString()
Gets a representation for this note: its content.
|
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributespublic Note()
Note object.public Note(Note original)
original - the original object to duplicate.public Note(java.lang.String content)
Note object with a content with a scope set to Note.AppliesTo.UNDEFINED.content - the content of the note.public Note(java.lang.String content,
Note.AppliesTo appliesTo)
Note object with a content and a scope.content - the content of this note.appliesTo - the scope of this note.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText()
public void setText(java.lang.String content)
content - the new content to set.public boolean isEmpty()
public Note.AppliesTo getAppliesTo()
public void setAppliesTo(Note.AppliesTo appliesTo)
appliesTo - the type of object this note applies to.public java.lang.String getId()
public void setId(java.lang.String id)
id - the new id to set.public java.lang.String getCategory()
public void setCategory(java.lang.String category)
category - the new category to set (can be null).public int getPriority()
public void setPriority(int priority)
priority - the new priority to set.
The value must be between 1 (inclusive) and 10 (inclusive).
1 indicates the highest priority, 10 the lowest.