001/** 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.krms.dto; 017 018import org.kuali.rice.krms.api.repository.term.TermParameterDefinitionContract; 019 020import java.io.Serializable; 021 022/** 023 * @author Kuali Student Team 024 */ 025public class TermParameterEditor implements TermParameterDefinitionContract, Serializable { 026 027 private String id; 028 private String termId; 029 private String name; 030 private String value; 031 private Long versionNumber; 032 033 public TermParameterEditor(){ 034 super(); 035 } 036 037 public TermParameterEditor(String name, String value){ 038 super(); 039 this.setName(name); 040 this.setValue(value); 041 } 042 043 public TermParameterEditor(TermParameterDefinitionContract contract){ 044 this.id = contract.getId(); 045 this.termId = contract.getTermId(); 046 this.name = contract.getName(); 047 this.value = contract.getValue(); 048 this.versionNumber = contract.getVersionNumber(); 049 } 050 051 public void setId(String id) { 052 this.id = id; 053 } 054 055 public void setTermId(String termId) { 056 this.termId = termId; 057 } 058 059 public void setName(String name) { 060 this.name = name; 061 } 062 063 public void setValue(String value) { 064 this.value = value; 065 } 066 067 public void setVersionNumber(Long versionNumber) { 068 this.versionNumber = versionNumber; 069 } 070 071 @Override 072 public String getTermId() { 073 return this.termId; 074 } 075 076 @Override 077 public String getName() { 078 return this.name; 079 } 080 081 @Override 082 public String getValue() { 083 return this.value; 084 } 085 086 @Override 087 public String getId() { 088 return this.id; 089 } 090 091 @Override 092 public Long getVersionNumber() { 093 return this.versionNumber; 094 } 095 096}