View Javadoc

1   /*
2    * Copyright 2009 The Kuali Foundation Licensed under the Educational Community
3    * License, Version 1.0 (the "License"); you may not use this file except in
4    * compliance with the License. You may obtain a copy of the License at
5    * http://www.opensource.org/licenses/ecl1.php Unless required by applicable law
6    * or agreed to in writing, software distributed under the License is
7    * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8    * KIND, either express or implied. See the License for the specific language
9    * governing permissions and limitations under the License.
10   */
11  package org.kuali.student.enrollment.lrr.dto;
12  
13  import java.io.Serializable;
14  import java.util.List;
15  
16  import javax.xml.bind.annotation.XmlAccessType;
17  import javax.xml.bind.annotation.XmlAccessorType;
18  import javax.xml.bind.annotation.XmlAnyElement;
19  import javax.xml.bind.annotation.XmlElement;
20  import javax.xml.bind.annotation.XmlType;
21  
22  import org.kuali.student.enrollment.lrr.infc.ResultSource;
23  import org.kuali.student.r2.common.dto.IdEntityInfo;
24  import org.w3c.dom.Element;
25  
26  @XmlAccessorType(XmlAccessType.FIELD)
27  @XmlType(name = "ResultSourceInfo", propOrder = {"id", "typeKey", "name", "descr", "articulationId",
28          "resultTransformationId", "meta", "attributes", "_futureElements"})
29  public class ResultSourceInfo extends IdEntityInfo implements ResultSource, Serializable {
30  
31      private static final long serialVersionUID = 1L;
32  
33      @XmlElement
34      private String articulationId;
35  
36      @XmlElement
37      private String resultTransformationId;
38  
39      @XmlAnyElement
40      private List<Element> _futureElements;
41  
42      public ResultSourceInfo() {
43  
44      }
45  
46      public ResultSourceInfo(ResultSource resultSource) {
47          super(resultSource);
48  
49          this.articulationId = resultSource.getArticulationId();
50          this.resultTransformationId = resultSource.getResultTransformationId();
51      }
52  
53      public String getArticulationId() {
54          return articulationId;
55      }
56  
57      public String getResultTransformationId() {
58          return resultTransformationId;
59      }
60  
61      public void setArticulationId(String articulationId) {
62          this.articulationId = articulationId;
63      }
64  
65      public void setResultTransformationId(String resultTransformationId) {
66          this.resultTransformationId = resultTransformationId;
67      }
68  }