1 package org.kuali.rice.krms.dto;
2
3 import org.kuali.rice.krms.api.repository.proposition.PropositionParameterContract;
4
5 import java.io.Serializable;
6 import org.kuali.rice.krms.api.repository.term.TermDefinition;
7
8
9
10
11
12
13
14
15 public class PropositionParameterEditor implements PropositionParameterContract, Serializable {
16
17 private String id;
18 private String propId;
19 private String value;
20 private TermDefinition termValue;
21 private String parameterType;
22 private Integer sequenceNumber;
23 private Long versionNumber;
24
25 public PropositionParameterEditor(){
26 super();
27 }
28
29 public PropositionParameterEditor(String parameterType, Integer sequenceNumber){
30 super();
31 this.setParameterType(parameterType);
32 this.setSequenceNumber(sequenceNumber);
33 this.setVersionNumber(new Long(1));
34 this.setValue(null);
35 this.setTermValue(null);
36 }
37
38
39
40
41
42
43 public PropositionParameterEditor(PropositionParameterContract definition) {
44 this.id = definition.getId();
45 this.propId = definition.getPropId();
46 this.value = definition.getValue();
47 this.termValue = definition.getTermValue();
48 this.parameterType = definition.getParameterType();
49 this.sequenceNumber = definition.getSequenceNumber();
50 this.versionNumber = definition.getVersionNumber();
51 }
52
53 public void setId(String id) {
54 this.id = id;
55 }
56
57 @Override
58 public String getId() {
59 return id;
60 }
61
62 public void setPropId(String propId) {
63 this.propId = propId;
64 }
65
66 @Override
67 public String getPropId() {
68 return propId;
69 }
70
71 public void setValue(String value) {
72 this.value = value;
73 }
74
75 @Override
76 public String getValue() {
77 return value;
78 }
79
80 public void setTermValue(TermDefinition termValue) {
81 this.termValue = termValue;
82 }
83
84 @Override
85 public TermDefinition getTermValue() {
86 return termValue;
87 }
88
89
90
91 public void setParameterType(String parameterType) {
92 this.parameterType = parameterType;
93 }
94
95 @Override
96 public String getParameterType() {
97 return parameterType;
98 }
99
100 public void setSequenceNumber(Integer sequenceNumber) {
101 this.sequenceNumber = sequenceNumber;
102 }
103
104 @Override
105 public Integer getSequenceNumber() {
106 return sequenceNumber;
107 }
108
109 @Override
110 public Long getVersionNumber() {
111 return versionNumber;
112 }
113
114 public void setVersionNumber(Long versionNumber) {
115 this.versionNumber = versionNumber;
116 }
117
118 }