1 /**
2 * Copyright 2010 The Kuali Foundation Licensed under the
3 * Educational Community License, Version 2.0 (the "License"); you may
4 * not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
6 *
7 * http://www.osedu.org/licenses/ECL-2.0
8 *
9 * Unless required by applicable law or agreed to in writing,
10 * software distributed under the License is distributed on an "AS IS"
11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 * or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 package org.kuali.student.lum.lu.dto;
17
18 import java.io.Serializable;
19
20 import javax.xml.bind.annotation.XmlAccessType;
21 import javax.xml.bind.annotation.XmlAccessorType;
22 import javax.xml.bind.annotation.XmlAttribute;
23 import javax.xml.bind.annotation.XmlElement;
24
25 import org.kuali.student.common.dto.Idable;
26
27 /**
28 * Key/value pair, typically used for information which may vary from the common set of information provided about an object.
29 *
30 * @Author KSContractMojo
31 * @Author Kamal
32 * @Since Mon Jan 11 15:21:23 PST 2010
33 * @See <a href="https://test.kuali.org/confluence/display/KULSTU/fieldInfo+Structure+v1.0-rc1">FieldInfo v1.0-rc1</>
34 *
35 */
36 @XmlAccessorType(XmlAccessType.FIELD)
37 public class FieldInfo implements Serializable, Idable {
38
39 private static final long serialVersionUID = 1L;
40
41 @XmlElement
42 private String value;
43
44 @XmlAttribute(name="key")
45 private String id;
46
47 /**
48 * The value for this field.
49 */
50 public String getValue() {
51 return value;
52 }
53
54 public void setValue(String value) {
55 this.value = value;
56 }
57
58 /**
59 * The identifier for this field.
60 */
61 public String getId() {
62 return id;
63 }
64
65 public void setId(String id) {
66 this.id = id;
67 }
68 }