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 016package org.kuali.student.r1.common.assembly.old.data; 017 018import java.io.Serializable; 019import java.util.List; 020 021import org.kuali.student.r2.common.dto.ValidationResultInfo; 022 023@Deprecated 024public class SaveResult<T> implements Serializable{ 025 private static final long serialVersionUID = 1L; 026 027 private T value; 028 private List<ValidationResultInfo> validationResults; 029 public T getValue() { 030 return value; 031 } 032 public void setValue(T value) { 033 this.value = value; 034 } 035 036 public List<ValidationResultInfo> getValidationResults() { 037 return validationResults; 038 } 039 040 public void setValidationResults(List<ValidationResultInfo> validationResults) { 041 this.validationResults = validationResults; 042 } 043 044 public void addValidationResults(List<ValidationResultInfo> validationResults){ 045 if (this.validationResults == null){ 046 setValidationResults(this.validationResults); 047 } else{ 048 this.validationResults.addAll(validationResults); 049 } 050 } 051 052}