package de.fhswf.in.inf.se.notepadMinusMinus.model; import java.math.BigDecimal; import java.util.List; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; /** * TODO Add comment here * * @author $Author: $ * @version $Revision: $, $Date: $ UTC */ @XmlRootElement(name = "grades") public class Grades { ObservableList grades = FXCollections .observableArrayList(Grade.extractor()); private ObjectProperty thesis = new SimpleObjectProperty<>( new BigDecimal("0.0")); private ObjectProperty colloquium = new SimpleObjectProperty<>( new BigDecimal("0.0")); /** * TODO Add method comment here * * @return */ @XmlElement(name = "grade", required = true) public List getGrades() { return this.grades; } /** * TODO Add method comment here * * @param grades */ public void setGrades(List grades) { this.grades.clear(); this.grades.setAll(grades); } /** * TODO Add method comment here * * @return */ public ObservableList gradesProperty() { return grades; } /** * TODO Add method comment here * * @return */ public final ObjectProperty thesisProperty() { return this.thesis; } /** * TODO Add method comment here * * @return */ @XmlAttribute(name = "thesis") public final BigDecimal getThesis() { return this.thesisProperty().get(); } /** * TODO Add method comment here * * @param thesis */ public final void setThesis(final BigDecimal thesis) { this.thesisProperty().set(thesis); } /** * TODO Add method comment here * * @return */ public final ObjectProperty colloquiumProperty() { return this.colloquium; } /** * TODO Add method comment here * * @return */ @XmlAttribute(name = "colloquium") public final BigDecimal getColloquium() { return this.colloquiumProperty().get(); } /** * TODO Add method comment here * * @param colloquium */ public final void setColloquium(final BigDecimal colloquium) { this.colloquiumProperty().set(colloquium); } }