View Javadoc

1   /*
2    * Copyright 2007 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.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/ecl1.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.student.r2.lum.lrc.dto;
17  
18  import java.io.Serializable;
19  import java.util.List;
20  
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlAnyElement;
24  import javax.xml.bind.annotation.XmlElement;
25  import javax.xml.bind.annotation.XmlType;
26  
27  import org.kuali.student.r2.lum.lrc.infc.ResultValueRange;
28  //import org.w3c.dom.Element;
29  
30  @XmlAccessorType(XmlAccessType.FIELD)
31  @XmlType(name = "ResultValueRangeInfo", propOrder = {
32          "minValue", "maxValue", "increment" , "_futureElements" }) 
33  
34  public class ResultValueRangeInfo implements ResultValueRange, Serializable {
35      private static final long serialVersionUID = 1L;
36  
37      @XmlElement
38      private String minValue;
39  
40      @XmlElement
41      private String maxValue;
42  
43      @XmlElement
44      private String increment;
45  
46      @XmlAnyElement
47      private List<Object> _futureElements;  
48  
49      public ResultValueRangeInfo() {
50          minValue = null;
51          maxValue = null;
52          increment = null;
53      }
54  
55      public ResultValueRangeInfo(ResultValueRange resultValueRangeInfo) {
56          if (null != resultValueRangeInfo) {
57              this.minValue = resultValueRangeInfo.getMinValue();
58              this.maxValue = resultValueRangeInfo.getMaxValue();
59              this.increment = resultValueRangeInfo.getIncrement();
60          }
61      }
62  
63      @Override
64      public String getMinValue() {
65          return minValue;
66      }
67  
68      public void setMinValue(String minValue) {
69          this.minValue = minValue;
70      }
71  
72      @Override
73      public String getMaxValue() {
74          return maxValue;
75      }
76  
77      public void setMaxValue(String maxValue) {
78          this.maxValue = maxValue;
79      }
80  
81      @Override
82      public String getIncrement() {
83          return increment;
84      }
85  
86      public void setIncrement(String increment) {
87          this.increment = increment;
88      }
89  }