org.sakaiproject.tool.assessment.osid.questionpool.impl
Class QuestionPoolImpl

java.lang.Object
  extended by org.sakaiproject.tool.assessment.osid.questionpool.impl.QuestionPoolImpl
All Implemented Interfaces:
Serializable, QuestionPool

public class QuestionPoolImpl
extends Object
implements QuestionPool

This class implements common methods for accessing a question pool. A question pool is defined as a centralized repository where questions are stored. They allow one to use the same question on multiple tests without duplicating data, and provide an assessment-independent way to store questions.

Author:
Ed Smiley
See Also:
Serialized Form

Constructor Summary
QuestionPoolImpl()
          Creates a new QuestionPoolImpl object.
QuestionPoolImpl(org.osid.shared.Id newId, org.osid.shared.Id newParentId)
          Constructor.
 
Method Summary
 Serializable getData()
          DOCUMENTATION PENDING
 String getDescription()
          DOCUMENTATION PENDING
 String getDisplayName()
          DOCUMENTATION PENDING
 org.osid.shared.Id getId()
          DOCUMENTATION PENDING
 org.osid.shared.Id getParentId()
          DOCUMENTATION PENDING
 QuestionPool getParentPool()
          DOCUMENTATION PENDING
 org.osid.shared.Type getQuestionPoolType()
          DOCUMENTATION PENDING
 void setDisplayName(String pdisplayName)
           
 void setParentId(org.osid.shared.Id parentId)
          Sets the parent id object for the question pool
 void setParentPool(QuestionPool parentPool)
           
 void updateData(Serializable pdata)
          DOCUMENTATION PENDING
 void updateDescription(String pdescription)
          DOCUMENTATION PENDING
 void updateDisplayName(String pdisplayName)
          DOCUMENTATION PENDING
 void updateQuestionPoolType(org.osid.shared.Type questionPoolType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionPoolImpl

public QuestionPoolImpl()
Creates a new QuestionPoolImpl object.


QuestionPoolImpl

public QuestionPoolImpl(org.osid.shared.Id newId,
                        org.osid.shared.Id newParentId)
Constructor. Each question pool has a unique Id object and owns the Id of its parent. See getId(), getParentId()

Parameters:
newId - the id
newParentId - the id of its parent
Method Detail

updateDisplayName

public void updateDisplayName(String pdisplayName)
                       throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
updateDisplayName in interface QuestionPool
Parameters:
pdisplayName - the display name for the question pool
Throws:
QuestionPoolException

setDisplayName

public void setDisplayName(String pdisplayName)
                    throws QuestionPoolException
Throws:
QuestionPoolException

updateDescription

public void updateDescription(String pdescription)
                       throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
updateDescription in interface QuestionPool
Parameters:
pdescription - the description for the question pool
Throws:
QuestionPoolException

updateData

public void updateData(Serializable pdata)
                throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
updateData in interface QuestionPool
Parameters:
pdata - the extra data member for the question pool
Throws:
QuestionPoolException

getDisplayName

public String getDisplayName()
                      throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
getDisplayName in interface QuestionPool
Returns:
the display name for the question pool
Throws:
QuestionPoolException

getDescription

public String getDescription()
                      throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
getDescription in interface QuestionPool
Returns:
the description for the question pool
Throws:
QuestionPoolException

getId

public org.osid.shared.Id getId()
                         throws QuestionPoolException
DOCUMENTATION PENDING

Specified by:
getId in interface QuestionPool
Returns:
DOCUMENTATION PENDING
Throws:
QuestionPoolException - DOCUMENTATION PENDING

getQuestionPoolType

public org.osid.shared.Type getQuestionPoolType()
                                         throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
getQuestionPoolType in interface QuestionPool
Returns:
the type of pool for the question pool
Throws:
QuestionPoolException

updateQuestionPoolType

public void updateQuestionPoolType(org.osid.shared.Type questionPoolType)
                            throws QuestionPoolException
Throws:
QuestionPoolException

getData

public Serializable getData()
                     throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
getData in interface QuestionPool
Returns:
the extra data for the question pool
Throws:
QuestionPoolException

getParentId

public org.osid.shared.Id getParentId()
                               throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
getParentId in interface QuestionPool
Returns:
the id object for the question pool
Throws:
QuestionPoolException

setParentId

public void setParentId(org.osid.shared.Id parentId)
                 throws QuestionPoolException
Sets the parent id object for the question pool

Specified by:
setParentId in interface QuestionPool
Throws:
QuestionPoolException

getParentPool

public QuestionPool getParentPool()
                           throws QuestionPoolException
Description copied from interface: QuestionPool
DOCUMENTATION PENDING

Specified by:
getParentPool in interface QuestionPool
Returns:
the parent pool for the question pool
Throws:
QuestionPoolException

setParentPool

public void setParentPool(QuestionPool parentPool)


Copyright © 2005-2012 Sakai Project. All Rights Reserved.