Class PIMNote

java.lang.Object
  |
  +--PIMEntity
        |
        +--PIMNote

public class PIMNote
extends PIMEntity

This class represents Notes in the PIM system. Each note contains a priority label and some actual text.


Constructor Summary
PIMNote()
          default constructor.
PIMNote(java.lang.String note)
          constructor that allows the note description to be specified.
PIMNote(java.lang.String note, java.lang.String prio)
          constructor that allows the note and priority to be set
 
Method Summary
 void fromString(java.lang.String s)
          sets the priority and note text from a string.
 java.lang.String toString()
          generates a string representation of the Note item, including the priority and the text of the note.
 
Methods inherited from class PIMEntity
getPriority, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PIMNote

public PIMNote()
default constructor.


PIMNote

public PIMNote(java.lang.String note)
constructor that allows the note description to be specified.

Parameters:
note - the actual text of this Note.

PIMNote

public PIMNote(java.lang.String note,
               java.lang.String prio)
constructor that allows the note and priority to be set

Parameters:
note - the actual text of this Note.
prio - the priority label
Method Detail

fromString

public void fromString(java.lang.String s)
sets the priority and note text from a string.

Specified by:
fromString in class PIMEntity
Parameters:
s - printable representation of the note item, in the format produced by the toString method

toString

public java.lang.String toString()
generates a string representation of the Note item, including the priority and the text of the note.

Specified by:
toString in class PIMEntity
Returns:
the string representation of this note.