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.common.dto.IdNamelessEntityInfo;
19  import org.kuali.student.r2.lum.clu.infc.CluIdentifier;
20  
21  import javax.xml.bind.Element;
22  import javax.xml.bind.annotation.XmlAccessType;
23  import javax.xml.bind.annotation.XmlAccessorType;
24  import javax.xml.bind.annotation.XmlAnyElement;
25  import javax.xml.bind.annotation.XmlElement;
26  import javax.xml.bind.annotation.XmlType;
27  import java.io.Serializable;
28  import java.util.List;
29  import java.util.Map;
30  
31  /**
32   * Detailed information about the human readable form of a CLU Identifier
33   */
34  @XmlAccessorType(XmlAccessType.FIELD)
35  @XmlType(name = "CluIdentifierInfo", propOrder = {"id", "typeKey", "stateKey", "code", "shortName", "longName", "level", "division", "variation", "suffixCode", "orgId", "meta", "attributes" , "_futureElements" }) 
36  public class CluIdentifierInfo extends IdNamelessEntityInfo implements CluIdentifier, Serializable {
37  
38      private static final long serialVersionUID = 1L;
39  
40      @XmlElement
41      private String code;
42  
43      @XmlElement
44      private String shortName;
45  
46      @XmlElement
47      private String longName;
48  
49      @XmlElement
50      private String level;
51  
52      @XmlElement
53      private String division;
54  
55      @XmlElement
56      private String variation;
57  
58      @XmlElement
59      private String suffixCode;
60  
61      @XmlElement
62      private String orgId;
63  
64      @XmlAnyElement
65      private List<Object> _futureElements;  
66  
67      public CluIdentifierInfo() {
68  
69      }
70  
71      public CluIdentifierInfo(CluIdentifier cluIdentifier) {
72          super(cluIdentifier);
73          if (null != cluIdentifier) {
74              this.code = cluIdentifier.getCode();
75              this.shortName = cluIdentifier.getShortName();
76              this.longName = cluIdentifier.getLongName();
77              this.level = cluIdentifier.getLevel();
78              this.division = cluIdentifier.getDivision();
79              this.variation = cluIdentifier.getVariation();
80              this.suffixCode = cluIdentifier.getSuffixCode();
81              this.orgId = cluIdentifier.getOrgId();
82          }
83      }
84  
85      @Override
86      public String getCode() {
87          return code;
88      }
89  
90      public void setCode(String code) {
91          this.code = code;
92      }
93  
94      @Override
95      public String getShortName() {
96          return shortName;
97      }
98  
99      public void setShortName(String shortName) {
100         this.shortName = shortName;
101     }
102 
103     @Override
104     public String getLongName() {
105         return longName;
106     }
107 
108     public void setLongName(String longName) {
109         this.longName = longName;
110     }
111 
112     @Override
113     public String getLevel() {
114         return level;
115     }
116 
117     public void setLevel(String level) {
118         this.level = level;
119     }
120 
121     @Override
122     public String getDivision() {
123         return division;
124     }
125 
126     public void setDivision(String division) {
127         this.division = division;
128     }
129 
130     @Override
131     public String getSuffixCode() {
132         return suffixCode;
133     }
134 
135     public void setSuffixCode(String suffixCode) {
136         this.suffixCode = suffixCode;
137     }
138 
139     @Override
140     public String getVariation() {
141         return variation;
142     }
143 
144     public void setVariation(String variation) {
145         this.variation = variation;
146     }
147 
148     @Override
149     public String getOrgId() {
150         return orgId;
151     }
152 
153     public void setOrgId(String orgId) {
154         this.orgId = orgId;
155     }
156 
157 }