package model; /** * * @author Mark George <mark.george@otago.ac.nz> */ public class Criterion { private final String criterion; private final String description; private final Integer min; private final Integer max; private final String editorType; private final String criterionType; private Double result; private String comment; public Criterion(String criterion, String description, Integer min, Integer max, String editorType, String criterionType) { this.criterion = criterion; this.description = description; this.min = min; this.max = max; this.editorType = editorType; this.criterionType = criterionType; } public Double getResult() { return result; } public void setResult(Double result) { this.result = result; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } public String getCriterion() { return criterion; } public String getDescription() { return description; } public Integer getMin() { return min; } public Integer getMax() { return max; } public String getEditorType() { return editorType; } public String getCriterionType() { return criterionType; } public Boolean isScale() { return this.editorType.equalsIgnoreCase("scale"); } public Boolean isNormal() { return this.criterionType.equalsIgnoreCase("normal"); } }