001 /*
002 * Copyright 2007 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 1.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/ecl1.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 */
016 package org.kuali.student.r2.lum.lrc.dto;
017
018 import java.io.Serializable;
019 import java.util.Date;
020 import java.util.List;
021
022 import javax.xml.bind.annotation.XmlAccessType;
023 import javax.xml.bind.annotation.XmlAccessorType;
024 import javax.xml.bind.annotation.XmlAnyElement;
025 import javax.xml.bind.annotation.XmlAttribute;
026 import javax.xml.bind.annotation.XmlElement;
027 import javax.xml.bind.annotation.XmlType;
028
029 import org.kuali.student.r2.lum.lrc.infc.ResultValueRange;
030 //import org.w3c.dom.Element;
031
032 @XmlAccessorType(XmlAccessType.FIELD)
033 @XmlType(name = "ResultValueRangeInfo", propOrder = {
034 "minValue", "maxValue", "increment" })//, "_futureElements" }) TODO KSCM-372: Non-GWT translatable code
035
036 public class ResultValueRangeInfo implements ResultValueRange, Serializable {
037 private static final long serialVersionUID = 1L;
038
039 @XmlElement
040 private String minValue;
041
042 @XmlElement
043 private String maxValue;
044
045 @XmlElement
046 private String increment;
047
048 // TODO KSCM-372: Non-GWT translatable code
049 // @XmlAnyElement
050 // private List<Element> _futureElements;
051
052 public ResultValueRangeInfo() {
053 minValue = null;
054 maxValue = null;
055 increment = null;
056 }
057
058 public ResultValueRangeInfo(ResultValueRange resultValueRangeInfo) {
059 if (null != resultValueRangeInfo) {
060 this.minValue = resultValueRangeInfo.getMinValue();
061 this.maxValue = resultValueRangeInfo.getMaxValue();
062 this.increment = resultValueRangeInfo.getIncrement();
063 }
064 }
065
066 @Override
067 public String getMinValue() {
068 return minValue;
069 }
070
071 public void setMinValue(String minValue) {
072 this.minValue = minValue;
073 }
074
075 @Override
076 public String getMaxValue() {
077 return maxValue;
078 }
079
080 public void setMaxValue(String maxValue) {
081 this.maxValue = maxValue;
082 }
083
084 @Override
085 public String getIncrement() {
086 return increment;
087 }
088
089 public void setIncrement(String increment) {
090 this.increment = increment;
091 }
092 }