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  package org.kuali.student.core.ges.dto;
16  
17  import org.kuali.student.core.ges.infc.Parameter;
18  import org.kuali.student.core.ges.infc.GesValueTypeEnum;
19  import org.kuali.student.r2.common.dto.KeyEntityInfo;
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.util.List;
27  
28  @XmlAccessorType(XmlAccessType.FIELD)
29  @XmlType(name = "ParameterInfo", propOrder = {"key", "typeKey", "stateKey","name","descr",
30          "gesValueTypeEnum","requireUniquePriorities", "meta", "attributes", "_futureElements" })
31  public class ParameterInfo extends KeyEntityInfo implements Parameter {
32  
33      @XmlElement
34      private GesValueTypeEnum gesValueTypeEnum;
35      @XmlElement
36      private Boolean requireUniquePriorities;
37      @XmlAnyElement
38      private List<Object> _futureElements;
39  
40      public ParameterInfo() {
41      }
42  
43      public ParameterInfo(Parameter parameter) {
44          super(parameter);
45  
46          if(parameter != null) {
47              gesValueTypeEnum = parameter.getGesValueTypeEnum();
48              requireUniquePriorities = parameter.getRequireUniquePriorities();
49          }
50      }
51  
52      public GesValueTypeEnum getGesValueTypeEnum() {
53          return gesValueTypeEnum;
54      }
55  
56      public void setGesValueTypeEnum(GesValueTypeEnum gesValueTypeEnum) {
57          this.gesValueTypeEnum = gesValueTypeEnum;
58      }
59  
60      @Override
61      public Boolean getRequireUniquePriorities() {
62          return requireUniquePriorities;
63      }
64  
65      public void setRequireUniquePriorities(Boolean requireUniquePriorities) {
66          this.requireUniquePriorities = requireUniquePriorities;
67      }
68  
69  
70  }