blackboard.data.content
Class Lesson
java.lang.Object
blackboard.data.BbObject
blackboard.data.content.Content
blackboard.data.content.ContentFolder
blackboard.data.content.Lesson
- All Implemented Interfaces:
- Available, Aggregate, Folder, IBbObject, Positionable, java.lang.Cloneable
public class Lesson
- extends ContentFolder
The Lesson
class represents a list of content that is meant to be
viewed in a linear, guided order. It is an aggregate, and thus has
addContent()
methods, the implementation of which is inherited from
ContentFolder
.
- Since:
- Bb 6.0
- Version:
- $Revision: #1 $ $Date: 2005/06/27 $
Constructor Summary |
Lesson()
Default constructor for Lesson objects. |
Method Summary |
boolean |
acceptsType(java.lang.String handler)
Returns whether the Lesson may aggregate objects of the specified
type. |
DataType |
getDataType()
Returns the DataType identifier for this object. |
Sequence |
getSequence()
Returns the Sequence for this object. |
Methods inherited from class blackboard.data.content.Content |
addContentFile, getAllowGuests, getAllowObservers, getBody, getContentFiles, getContentHandler, getContentStatus, getCourseId, getEndDate, getIsAvailable, getIsDescribed, getIsFromCartridge, getIsLesson, getIsReviewable, getIsSequential, getIsTracked, getLaunchInNewWindow, getOfflineName, getOfflinePath, getParentId, getPersistentTitle, getPosition, getRemovedFiles, getRenderType, getStartDate, getTitle, getTitleColor, getUrl, printTree, removeContentFile, removeContentFile, setAllowGuests, setAllowObservers, setBody, setContentHandler, setCourseId, setEndDate, setIsAvailable, setIsDescribed, setIsFolder, setIsFromCartridge, setIsLesson, setIsReviewable, setIsSequential, setIsTracked, setLaunchInNewWindow, setOfflineName, setOfflinePath, setParentId, setPosition, setRenderType, setStartDate, setTitle, setTitleColor, setUrl, traverseContent, validate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DATA_TYPE
public static final DataType DATA_TYPE
Lesson
public Lesson()
- Default constructor for
Lesson
objects. Creates an empty lesson,
with the appropriate content attributes set to appropriate defaults for a
lessons (also called Learning Units).
acceptsType
public boolean acceptsType(java.lang.String handler)
- Returns whether the
Lesson
may aggregate objects of the specified
type. Most content types are allowed. The only types that cannot be added are:
- Folders. Type string
resource/x-bb-folder
- Lessons. Type string
resource/x-bb-lesson
- Specified by:
acceptsType
in interface Aggregate
- Overrides:
acceptsType
in class ContentFolder
- Parameters:
handler
- string conforming to the content handler identifiers
- Returns:
true
if the type may be aggregated.
getSequence
public Sequence getSequence()
- Returns the
Sequence
for this object. Currently, this method
is not implemented.
- Specified by:
getSequence
in interface Aggregate
- Overrides:
getSequence
in class ContentFolder
- Returns:
Sequence
object
getDataType
public DataType getDataType()
- Returns the
DataType
identifier for this object. Can be used to
uniquely identify the "type" of this data object.
- Specified by:
getDataType
in interface IBbObject
- Overrides:
getDataType
in class ContentFolder
- Returns:
- the
DataType
for this object
Copyright © 2003 Blackboard, Inc. All Rights Reserved.