001    /**
002     * Copyright 2005-2013 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     */
016    package org.kuali.rice.kns.util;
017    
018    import org.kuali.rice.krad.util.MessageMap;
019    
020    import java.util.List;
021    import 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     */
029    public class InfoContainer extends MessageContainer {
030            public InfoContainer(MessageMap errorMap) {
031                    super(errorMap);
032            }
033            
034            /**
035             * @see MessageContainer#getMessageCount()
036             */
037            @Override
038            public int getMessageCount() {
039                    return getMessageMap().getInfoCount();
040            }
041    
042            /**
043             * @see MessageContainer#getMessagePropertyList()
044             */
045            @Override
046            public List<String> getMessagePropertyList() {
047                    return getMessageMap().getPropertiesWithInfo();
048            }
049    
050            /**
051             * @see MessageContainer#getMessagePropertyNames()
052             */
053            @Override
054            protected Set<String> getMessagePropertyNames() {
055                    return getMessageMap().getAllPropertiesWithInfo();
056            }
057    
058            /**
059             * @see MessageContainer#getMessagesForProperty(java.lang.String)
060             */
061            @Override
062            protected List getMessagesForProperty(String propertyName) {
063                    return getMessageMap().getInfoMessagesForProperty(propertyName);
064            }
065    
066    }