001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.kns.util; 017 018import org.kuali.rice.krad.util.MessageMap; 019 020import java.util.List; 021import java.util.Set; 022 023/** 024 * This is a description of what this class does - wliang don't forget to fill this in. 025 * 026 * @author Kuali Rice Team (rice.collab@kuali.org) 027 * 028 * @deprecated Only used in KNS classes, use KRAD. 029 */ 030@Deprecated 031public class InfoContainer extends MessageContainer { 032 public InfoContainer(MessageMap errorMap) { 033 super(errorMap); 034 } 035 036 /** 037 * @see MessageContainer#getMessageCount() 038 */ 039 @Override 040 public int getMessageCount() { 041 return getMessageMap().getInfoCount(); 042 } 043 044 /** 045 * @see MessageContainer#getMessagePropertyList() 046 */ 047 @Override 048 public List<String> getMessagePropertyList() { 049 return getMessageMap().getPropertiesWithInfo(); 050 } 051 052 /** 053 * @see MessageContainer#getMessagePropertyNames() 054 */ 055 @Override 056 protected Set<String> getMessagePropertyNames() { 057 return getMessageMap().getAllPropertiesWithInfo(); 058 } 059 060 /** 061 * @see MessageContainer#getMessagesForProperty(java.lang.String) 062 */ 063 @Override 064 protected List getMessagesForProperty(String propertyName) { 065 return getMessageMap().getInfoMessagesForProperty(propertyName); 066 } 067 068}