org.sakaiproject.tool.gradebook
Class LetterGradePercentMapping

java.lang.Object
  extended by org.sakaiproject.tool.gradebook.LetterGradePercentMapping
All Implemented Interfaces:
Serializable

public class LetterGradePercentMapping
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
LetterGradePercentMapping()
           
 
Method Summary
 String getGrade(Double value)
           
 Long getGradebookId()
           
 Map<String,Double> getGradeMap()
           
 Long getId()
           
 int getMappingType()
           
 Double getValue(String grade)
           
 int getVersion()
           
 void setGradebookId(Long gradebookId)
           
 void setGradeMap(Map<String,Double> gradeMap)
           
 void setId(Long id)
           
 void setMappingType(int mappingType)
           
 void setVersion(int version)
           
 String standardizeInputGrade(String inputGrade)
          Enable any-case input of grades (typically lowercase input for uppercase grades).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LetterGradePercentMapping

public LetterGradePercentMapping()
Method Detail

getValue

public Double getValue(String grade)

getGrade

public String getGrade(Double value)

getId

public Long getId()

setId

public void setId(Long id)

getVersion

public int getVersion()

setVersion

public void setVersion(int version)

getGradeMap

public Map<String,Double> getGradeMap()

setGradeMap

public void setGradeMap(Map<String,Double> gradeMap)

getMappingType

public int getMappingType()

setMappingType

public void setMappingType(int mappingType)

getGradebookId

public Long getGradebookId()

setGradebookId

public void setGradebookId(Long gradebookId)

standardizeInputGrade

public String standardizeInputGrade(String inputGrade)
Enable any-case input of grades (typically lowercase input for uppercase grades). Look for a case-insensitive match to the input text and if it's found, return the official version.

Returns:
The normalized version of the grade, or null if not found.


Copyright © 2011 Sakai Project. All Rights Reserved.