1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.dto;
17
18 import org.kuali.rice.krms.api.repository.term.TermParameterDefinitionContract;
19
20 import java.io.Serializable;
21
22
23
24
25 public class TermParameterEditor implements TermParameterDefinitionContract, Serializable {
26
27 private String id;
28 private String termId;
29 private String name;
30 private String value;
31 private Long versionNumber;
32
33 public TermParameterEditor(){
34 super();
35 }
36
37 public TermParameterEditor(String name, String value){
38 super();
39 this.setName(name);
40 this.setValue(value);
41 }
42
43 public TermParameterEditor(TermParameterDefinitionContract contract){
44 this.id = contract.getId();
45 this.termId = contract.getTermId();
46 this.name = contract.getName();
47 this.value = contract.getValue();
48 this.versionNumber = contract.getVersionNumber();
49 }
50
51 public void setId(String id) {
52 this.id = id;
53 }
54
55 public void setTermId(String termId) {
56 this.termId = termId;
57 }
58
59 public void setName(String name) {
60 this.name = name;
61 }
62
63 public void setValue(String value) {
64 this.value = value;
65 }
66
67 public void setVersionNumber(Long versionNumber) {
68 this.versionNumber = versionNumber;
69 }
70
71 @Override
72 public String getTermId() {
73 return this.termId;
74 }
75
76 @Override
77 public String getName() {
78 return this.name;
79 }
80
81 @Override
82 public String getValue() {
83 return this.value;
84 }
85
86 @Override
87 public String getId() {
88 return this.id;
89 }
90
91 @Override
92 public Long getVersionNumber() {
93 return this.versionNumber;
94 }
95
96 }