Class PIMEntity

java.lang.Object
  |
  +--PIMEntity
Direct Known Subclasses:
PIMNote, PIMTodo

public abstract class PIMEntity
extends java.lang.Object

PIMEntity is the abstract class for all items managed by the personal information manager. PIMEntities all have a priority (a string) and can convert themselves to a single string and from a string.


Constructor Summary
PIMEntity()
          The default constructor sets the priority to "normal"
PIMEntity(java.lang.String priority)
          alternate constructor that allows the priority to be set.
 
Method Summary
abstract  void fromString(java.lang.String s)
          Each PIMEntity needs to be able to set all state information (fields) from a single text string.
 java.lang.String getPriority()
          Accessor method for getting the priority string.
 void setPriority(java.lang.String p)
          Sets the priority string
abstract  java.lang.String toString()
          This is actually already defined by the super class Object, but redefined here as abstract to make sure that derived classes actually implement it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PIMEntity

public PIMEntity()
The default constructor sets the priority to "normal"


PIMEntity

public PIMEntity(java.lang.String priority)
alternate constructor that allows the priority to be set.

Parameters:
priority - the priority label to be associated with the object.
Method Detail

getPriority

public java.lang.String getPriority()
Accessor method for getting the priority string.

Returns:
the current priority string

setPriority

public void setPriority(java.lang.String p)
Sets the priority string

Parameters:
p - the new priority label (string).

fromString

public abstract void fromString(java.lang.String s)
Each PIMEntity needs to be able to set all state information (fields) from a single text string.


toString

public abstract java.lang.String toString()
This is actually already defined by the super class Object, but redefined here as abstract to make sure that derived classes actually implement it

Overrides:
toString in class java.lang.Object