package de.fhswf.in.inf.se.notepadMinusMinus.model; import java.math.BigDecimal; import java.util.ArrayList; 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; @XmlRootElement(name = "grades") public class Grades { protected List grades; private ObjectProperty thesis = new SimpleObjectProperty<>( new BigDecimal("0.0")); private ObjectProperty colloquium = new SimpleObjectProperty<>( new BigDecimal("0.0")); @XmlElement(name = "grade", required = true) public List getGrades() { if (grades == null) { grades = new ArrayList<>(); } return this.grades; } public void setGrades(List consumption) { this.grades = consumption; } public final ObjectProperty thesisProperty() { return this.thesis; } @XmlAttribute(name = "thesis") public final BigDecimal getThesis() { return this.thesisProperty().get(); } public final void setThesis(final BigDecimal thesis) { this.thesisProperty().set(thesis); } public final ObjectProperty colloquiumProperty() { return this.colloquium; } @XmlAttribute(name = "colloquium") public final BigDecimal getColloquium() { return this.colloquiumProperty().get(); } public final void setColloquium(final BigDecimal colloquium) { this.colloquiumProperty().set(colloquium); } }