001 /** 002 * Copyright 2010 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 */ 015 016 package org.kuali.student.r2.lum.clu.dto; 017 018 import org.kuali.student.r2.lum.clu.infc.Field; 019 020 import javax.xml.bind.Element; 021 import javax.xml.bind.annotation.XmlAccessType; 022 import javax.xml.bind.annotation.XmlAccessorType; 023 import javax.xml.bind.annotation.XmlAnyElement; 024 import javax.xml.bind.annotation.XmlAttribute; 025 import javax.xml.bind.annotation.XmlElement; 026 import javax.xml.bind.annotation.XmlType; 027 import java.io.Serializable; 028 import java.util.List; 029 030 @XmlAccessorType(XmlAccessType.FIELD) 031 @XmlType(name = "FieldInfo", propOrder = {"id", "value" , "_futureElements" }) 032 public class FieldInfo implements Serializable, Field { 033 034 private static final long serialVersionUID = 1L; 035 036 @XmlAttribute 037 private String id; 038 039 @XmlElement 040 private String value; 041 042 @XmlAnyElement 043 private List<Object> _futureElements; 044 045 public FieldInfo() { 046 047 } 048 049 public FieldInfo(Field field) { 050 if (null != field) { 051 this.id = field.getId(); 052 this.value = field.getValue(); 053 } 054 } 055 056 @Override 057 public String getId() { 058 return id; 059 } 060 061 public void setId(String id) { 062 this.id = id; 063 } 064 065 @Override 066 public String getValue() { 067 return value; 068 } 069 070 public void setValue(String value) { 071 this.value = value; 072 } 073 }