View Javadoc
1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * @author Kuali Student Team
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  }