summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/se/notepadMinusMinus/model/Grades.java
blob: 9518aeeaef6f3c55faef30dbc2fed565a2ef6fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package de.fhswf.in.inf.se.notepadMinusMinus.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "grades")
public class Grades
{
   protected List<Grade> grades;

   @XmlElement(name = "grade", required = true)
   public List<Grade> getGrades()
   {
      if (grades == null)
      {
         grades = new ArrayList<Grade>();
      }
      return this.grades;
   }

   public void setGrades(List<Grade> consumption)
   {
      this.grades = consumption;
   }

}