public interface Todo extends OsidObject, Containable, Temporal, Federateable
A Todo
represents a checklist item. A Todo is
Temporal
that may go into effect at a future date or expired when
no longer applicable, skipped, or completed.
Modifier and Type | Method and Description |
---|---|
TodoList |
getDependencies()
Gets a list of todos on which this todo is dependent.
|
IdList |
getDependencyIds()
Gets a list of todo
Ids on which this todo is
dependent. |
DateTime |
getDueDate()
Gets the due date.
|
Type |
getPriority()
Gets a priority of this item.
|
TodoRecord |
getTodoRecord(Type todoRecordType)
Gets the todo record corresponding to the given
Todo
record Type. |
boolean |
isComplete()
Tests if this todo has been checked off.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isSequestered
getEndDate, getStartDate, isEffective
boolean isComplete()
true
if this todo is complete, false
if not completemandatory
- This method must be implemented. Type getPriority()
mandatory
- This method must be implemented. DateTime getDueDate()
mandatory
- This method must be implemented. IdList getDependencyIds()
Ids
on which this todo is
dependent. Ids
mandatory
- This method must be implemented. TodoList getDependencies() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. TodoRecord getTodoRecord(Type todoRecordType) throws OperationFailedException
Todo
record Type.
This method is used to retrieve an object
implementing the requested record. The todoRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(todoRecordType)
is true
.todoRecordType
- the type of todo record to retrieveNullArgumentException
- todoRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(todoRecordType)
is false
mandatory
- This method must be implemented.