View Javadoc

1   /**
2    * Copyright 2010 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  
16  package org.kuali.student.r2.lum.clu.dto;
17  
18  import org.kuali.student.r2.lum.clu.infc.AcademicSubjectOrg;
19  //import org.w3c.dom.Element;
20  
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlAnyElement;
24  import javax.xml.bind.annotation.XmlElement;
25  import javax.xml.bind.annotation.XmlType;
26  import java.io.Serializable;
27  import java.util.List;
28  
29  /**
30   * @Author KSContractMojo
31   * @Author Kamal
32   * @Version 2.0
33   * @Author Sri komandur@uw.edu
34   */
35  @XmlAccessorType(XmlAccessType.FIELD)
36  @XmlType(name = "AcademicSubjectOrgInfo", propOrder = {"orgId" , "_futureElements" }) 
37  public class AcademicSubjectOrgInfo implements AcademicSubjectOrg, Serializable {
38  
39      private static final long serialVersionUID = 1L;
40  
41      @XmlElement
42      private String orgId;
43      
44      @XmlAnyElement
45      private List<Object> _futureElements;  
46  
47      public AcademicSubjectOrgInfo() {
48      }
49  
50      public AcademicSubjectOrgInfo(AcademicSubjectOrg academicSubjectOrg) {
51          if (null != academicSubjectOrg) {
52              this.orgId = academicSubjectOrg.getOrgId();
53          }
54      }
55  
56      @Override
57      public String getOrgId() {
58          return orgId;
59      }
60  
61      public void setOrgId(String orgId) {
62          this.orgId = orgId;
63      }
64  }