From fa8fd8f0eb63198da62b853bab12cc416bc3aee4 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 30 Nov 2015 17:07:36 +0100 Subject: Add default header for methods and classes --- .../in/inf/se/notepadMinusMinus/model/Grade.java | 85 ++++++++++++++++++++++ .../in/inf/se/notepadMinusMinus/model/Grades.java | 46 ++++++++++++ 2 files changed, 131 insertions(+) (limited to 'src/de/fhswf/in/inf/se/notepadMinusMinus/model') diff --git a/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grade.java b/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grade.java index 77310c7..9758e6a 100644 --- a/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grade.java +++ b/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grade.java @@ -43,6 +43,11 @@ public class Grade private IntegerProperty attempt = new SimpleIntegerProperty(1); + /** + * TODO Add method comment here + * + * @return + */ public static Callback extractor() { return (Grade grade) -> new Observable[] { grade.semesterProperty(), @@ -50,86 +55,166 @@ public class Grade grade.gradeProperty(), grade.attemptProperty() }; } + /** + * TODO Add method comment here + * + * @return + */ public final IntegerProperty semesterProperty() { return this.semester; } + /** + * TODO Add method comment here + * + * @return + */ @XmlAttribute(name = "semester") public final int getSemester() { return this.semesterProperty().get(); } + /** + * TODO Add method comment here + * + * @param semester + */ public final void setSemester(final int semester) { this.semesterProperty().set(semester); } + /** + * TODO Add method comment here + * + * @return + */ public final StringProperty modulenameProperty() { return this.modulename; } + /** + * TODO Add method comment here + * + * @return + */ @XmlAttribute(name = "modulename", required = true) public final String getModulename() { return this.modulenameProperty().get(); } + /** + * TODO Add method comment here + * + * @param modulename + */ public final void setModulename(final java.lang.String modulename) { this.modulenameProperty().set(modulename); } + /** + * TODO Add method comment here + * + * @return + */ public final IntegerProperty ectsProperty() { return this.ects; } + /** + * TODO Add method comment here + * + * @return + */ @XmlAttribute(name = "ects") public final int getEcts() { return this.ectsProperty().get(); } + /** + * TODO Add method comment here + * + * @param ects + */ public final void setEcts(final int ects) { this.ectsProperty().set(ects); } + /** + * TODO Add method comment here + * + * @return + */ public final ObjectProperty gradeProperty() { return this.grade; } + /** + * TODO Add method comment here + * + * @return + */ @XmlValue public final BigDecimal getGrade() { return this.gradeProperty().get(); } + /** + * TODO Add method comment here + * + * @param grade + */ public final void setGrade(final BigDecimal grade) { this.gradeProperty().set(grade); } + /** + * TODO Add method comment here + * + * @return + */ public final IntegerProperty attemptProperty() { return this.attempt; } + /** + * TODO Add method comment here + * + * @return + */ @XmlAttribute(name = "attempt") public final int getAttempt() { return this.attemptProperty().get(); } + /** + * TODO Add method comment here + * + * @param attempt + */ public final void setAttempt(final int attempt) { this.attemptProperty().set(attempt); } + /** + * TODO Add method comment here + * + * @return + */ public static final ObservableList gradeValuesProperty() { if (gradeValues == null) diff --git a/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grades.java b/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grades.java index dda5db8..631097e 100644 --- a/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grades.java +++ b/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grades.java @@ -11,6 +11,12 @@ import javax.xml.bind.annotation.XmlRootElement; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; +/** + * TODO Add comment here + * + * @author $Author: $ + * @version $Revision: $, $Date: $ UTC + */ @XmlRootElement(name = "grades") public class Grades { @@ -22,6 +28,11 @@ public class Grades private ObjectProperty colloquium = new SimpleObjectProperty<>( new BigDecimal("0.0")); + /** + * TODO Add method comment here + * + * @return + */ @XmlElement(name = "grade", required = true) public List getGrades() { @@ -32,38 +43,73 @@ public class Grades return this.grades; } + /** + * TODO Add method comment here + * + * @param consumption + */ public void setGrades(List consumption) { this.grades = consumption; } + /** + * 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); -- cgit v1.2.3-70-g09d2