1 /** 2 * Copyright 2005-2012 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 */ 29 public class InfoContainer extends MessageContainer { 30 public InfoContainer(MessageMap errorMap) { 31 super(errorMap); 32 } 33 34 /** 35 * @see MessageContainer#getMessageCount() 36 */ 37 @Override 38 public int getMessageCount() { 39 return getMessageMap().getInfoCount(); 40 } 41 42 /** 43 * @see MessageContainer#getMessagePropertyList() 44 */ 45 @Override 46 public List<String> getMessagePropertyList() { 47 return getMessageMap().getPropertiesWithInfo(); 48 } 49 50 /** 51 * @see MessageContainer#getMessagePropertyNames() 52 */ 53 @Override 54 protected Set<String> getMessagePropertyNames() { 55 return getMessageMap().getAllPropertiesWithInfo(); 56 } 57 58 /** 59 * @see MessageContainer#getMessagesForProperty(java.lang.String) 60 */ 61 @Override 62 protected List getMessagesForProperty(String propertyName) { 63 return getMessageMap().getInfoMessagesForProperty(propertyName); 64 } 65 66 }