/*
 * Copyright 2000-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.jetspeed.om.page.psml;

// Java imports
import java.util.Map;
import java.util.HashMap;

/**
 * @version $Id: Defaults.java,v 1.2 2004/05/28 22:05:08 weaver Exp $
 */
public class Defaults
{

    private String skin = null;
    private Map decoratorMap = new HashMap();

    public Defaults()
    {
    }

    public String getSkin()
    {
        return this.skin;
    }

    public void setSkin(String skin)
    {
        this.skin = skin;
    }

    public String getDecorator(String type)
    {
        return (String)decoratorMap.get(type);
    }

    public void setDecorator(String type, String decorator)
    {
        decoratorMap.put(type,decorator);
    }

    public String getLayoutDecorator()
    {
        return getDecorator("layout");
    }

    public void setLayoutDecorator(String decorator)
    {
        setDecorator("layout",decorator);
    }

    public String getPortletDecorator()
    {
        return getDecorator("portlet");
    }

    public void setPortletDecorator(String decorator)
    {
        setDecorator("portlet",decorator);
    }

}