View Javadoc

1   /**
2    * Copyright 2013 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   *
15   * Created by Mezba Mahtab (mezba.mahtab@utoronto.ca) on 1/24/13
16   */
17  package org.kuali.student.enrollment.exam.dto;
18  
19  import org.kuali.student.enrollment.exam.infc.Exam;
20  import org.kuali.student.r2.common.dto.IdEntityInfo;
21  import org.w3c.dom.Element;
22  
23  import javax.xml.bind.annotation.XmlAccessType;
24  import javax.xml.bind.annotation.XmlAccessorType;
25  import javax.xml.bind.annotation.XmlAnyElement;
26  import javax.xml.bind.annotation.XmlType;
27  import java.io.Serializable;
28  import java.util.List;
29  
30  /**
31   * This class represents information about a canonical Exam.
32   *
33   * @author Mezba Mahtab (mezba.mahtab@utoronto.ca)
34   */
35  @XmlAccessorType(XmlAccessType.FIELD)
36  @XmlType(name = "ExamInfo", propOrder = {"id", "typeKey", "stateKey", "name",
37          "descr", "meta", "attributes", "_futureElements"})
38  public class ExamInfo extends IdEntityInfo implements Exam, Serializable {
39  
40      /////////////////////////////
41      // DATA VARIABLES
42      /////////////////////////////
43  
44      @XmlAnyElement
45      private List<Element> _futureElements;
46  
47      //////////////////////////////
48      // CONSTRUCTORS
49      //////////////////////////////
50  
51      /**
52       * Constructs an empty Exam.
53       */
54      public ExamInfo () { }
55  
56      /**
57       * Constructs a new ExamInfo from another
58       * Exam.
59       *
60       * @param infc the exam to copy
61       */
62      public ExamInfo (Exam infc) {
63          super(infc);
64  
65          if (infc == null) {
66              return;
67          }
68  
69      }
70  
71  }