/*
 * Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */
package com.arsdigita.cms.contenttypes;


/**
 * An object that contains a ContentGroup.  Provides 
 * a method for retrieving a ContentGroup based on its
 * attribute name.
 *
 * @author <a href="mailto:mikeb@redhat.com">Mike Bonnet</a>
 **/
public interface ContentGroupContainer {
    
    /**
     * Retrieve a ContentGroup.
     *
     * @param attrName The attribute name of the ContentGroup
     *                 to return.
     * @pre attrName != null
     * @return The specified ContentGroup or null if it
     *         does not exist.
     **/
    ContentGroup getContentGroup(String attrName);

    /**
     * Set a ContentGroup attribute.
     *
     * @param attrName The name of the attribute to set.
     * @param group The ContentGroup to set the attribute to.
     * @pre attrName != null
     **/
    void setContentGroup(String attrName, ContentGroup group);
}
