1 /** 2 * Copyright 2005-2015 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.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/ecl2.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.rice.kns.util; 17 18 import org.kuali.rice.krad.util.MessageMap; 19 20 import java.util.List; 21 import java.util.Set; 22 23 /** 24 * This is a description of what this class does - wliang don't forget to fill this in. 25 * 26 * @author Kuali Rice Team (rice.collab@kuali.org) 27 * 28 * @deprecated Only used in KNS classes, use KRAD. 29 */ 30 @Deprecated 31 public class InfoContainer extends MessageContainer { 32 public InfoContainer(MessageMap errorMap) { 33 super(errorMap); 34 } 35 36 /** 37 * @see MessageContainer#getMessageCount() 38 */ 39 @Override 40 public int getMessageCount() { 41 return getMessageMap().getInfoCount(); 42 } 43 44 /** 45 * @see MessageContainer#getMessagePropertyList() 46 */ 47 @Override 48 public List<String> getMessagePropertyList() { 49 return getMessageMap().getPropertiesWithInfo(); 50 } 51 52 /** 53 * @see MessageContainer#getMessagePropertyNames() 54 */ 55 @Override 56 protected Set<String> getMessagePropertyNames() { 57 return getMessageMap().getAllPropertiesWithInfo(); 58 } 59 60 /** 61 * @see MessageContainer#getMessagesForProperty(java.lang.String) 62 */ 63 @Override 64 protected List getMessagesForProperty(String propertyName) { 65 return getMessageMap().getInfoMessagesForProperty(propertyName); 66 } 67 68 }