1 /* 2 * Copyright 2007-2009 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 java.util.List; 19 import java.util.Set; 20 21 /** 22 * This is a description of what this class does - wliang don't forget to fill this in. 23 * 24 * @author Kuali Rice Team (rice.collab@kuali.org) 25 * 26 */ 27 public class InfoContainer extends MessageContainer { 28 public InfoContainer(MessageMap errorMap) { 29 super(errorMap); 30 } 31 32 /** 33 * @see org.kuali.rice.kns.util.MessageContainer#getMessageCount() 34 */ 35 @Override 36 public int getMessageCount() { 37 return getMessageMap().getInfoCount(); 38 } 39 40 /** 41 * @see org.kuali.rice.kns.util.MessageContainer#getMessagePropertyList() 42 */ 43 @Override 44 public List<String> getMessagePropertyList() { 45 return getMessageMap().getPropertiesWithInfo(); 46 } 47 48 /** 49 * @see org.kuali.rice.kns.util.MessageContainer#getMessagePropertyNames() 50 */ 51 @Override 52 protected Set<String> getMessagePropertyNames() { 53 return getMessageMap().getAllPropertiesWithInfo(); 54 } 55 56 /** 57 * @see org.kuali.rice.kns.util.MessageContainer#getMessagesForProperty(java.lang.String) 58 */ 59 @Override 60 protected List getMessagesForProperty(String propertyName) { 61 return getMessageMap().getInfoMessagesForProperty(propertyName); 62 } 63 64 }