Interface Todo
- All Superinterfaces:
Browsable, Containable, Extensible, Federateable, Identifiable, OsidObject, Temporal
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.
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of todos on which this todo is dependent.Gets a list of todoIdson which this todo is dependent.Gets the due date.Gets a priority of this item.getTodoRecord(Type todoRecordType) Gets the todo record corresponding to the givenTodorecordType.This method is used to retrieve an object implementing the requested record.booleanTests if this todo has been checked off.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Containable
isSequesteredModifier and TypeMethodDescriptionbooleanTests if thisContainableis sequestered in that it should not appear outside of its aggregated composition.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
isComplete
boolean isComplete()Tests if this todo has been checked off.- Returns:
trueif this todo is complete,falseif not complete- Compliance:
mandatory- This method must be implemented.
-
getPriority
Type getPriority()Gets a priority of this item.- Returns:
- a priority type
- Compliance:
mandatory- This method must be implemented.
-
getDueDate
DateTime getDueDate()Gets the due date.- Returns:
- a date
- Compliance:
mandatory- This method must be implemented.
-
getDependencyIds
IdList getDependencyIds()Gets a list of todoIdson which this todo is dependent.- Returns:
- a list of todo
Ids - Compliance:
mandatory- This method must be implemented.
-
getDependencies
Gets a list of todos on which this todo is dependent.- Returns:
- a list of todos
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTodoRecord
Gets the todo record corresponding to the givenTodorecordType.This method is used to retrieve an object implementing the requested record. ThetodoRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(todoRecordType)istrue.- Parameters:
todoRecordType- the type of todo record to retrieve- Returns:
- the todo record
- Throws:
NullArgumentException-todoRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(todoRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-