1
2
3
4
5
6
7
8
9
10
11
12
13
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 }