| java.lang.Object org.sakaiproject.tool.gradebook.GradableObject
All known Subclasses: org.sakaiproject.tool.gradebook.Assignment, org.sakaiproject.tool.gradebook.CourseGrade,
GradableObject | abstract public class GradableObject implements Serializable(Code) | | A GradableObject is a component of a Gradebook for which students can be
assigned a GradeRecord.
author: Josh Holtzman |
log | final protected static Log log(Code) | | |
removed | protected boolean removed(Code) | | |
version | protected int version(Code) | | |
getFormattedMean | public Double getFormattedMean()(Code) | | Returns the mean while protecting against displaying NaN. |
getName | public String getName()(Code) | | This should really only be a field in Assignment objects, since
the string describing CourseGrade needs to allow for localization.
Unfortunately, such we keep CourseGrade and Assignment objects in
the same table, and since we want Assignment names to be enforced
as non-nullable, we're stuck with a bogus CourseGrade "name" field
for now. The UI will have to be smart enough to disregard it.
Returns the name. |
getVersion | public int getVersion()(Code) | | Returns the version. |
hashCode | public int hashCode()(Code) | | |
isCourseGrade | abstract public boolean isCourseGrade()(Code) | | Whether this gradable object is a course grade |
isRemoved | public boolean isRemoved()(Code) | | Returns the removed. |
setGradebook | public void setGradebook(Gradebook gradebook)(Code) | | Parameters: gradebook - The gradebook to set. |
setId | public void setId(Long id)(Code) | | Parameters: id - The id to set. |
setMean | public void setMean(Double mean)(Code) | | Parameters: mean - The mean to set. |
setName | public void setName(String name)(Code) | | Parameters: name - The name to set. |
setRemoved | public void setRemoved(boolean removed)(Code) | | Parameters: removed - The removed to set. |
setVersion | public void setVersion(int version)(Code) | | Parameters: version - The version to set. |
|
|