// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you 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.myfaces.shared_tomahawk.taglib.html;

import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;


// Generated from class javax.faces.component.html._HtmlMessages.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlMessagesTag
    extends javax.faces.webapp.UIComponentTag
{
    public HtmlMessagesTag()
    {    
    }
    
    public String getComponentType()
    {
        return "javax.faces.HtmlMessages";
    }

    public String getRendererType()
    {
        return "javax.faces.Messages";
    }

 
    private String _layout;
    
    public void setLayout(String layout)
    {
        _layout = layout;
    }
 
    private String _style;
    
    public void setStyle(String style)
    {
        _style = style;
    }
 
    private String _styleClass;
    
    public void setStyleClass(String styleClass)
    {
        _styleClass = styleClass;
    }
 
    private String _errorClass;
    
    public void setErrorClass(String errorClass)
    {
        _errorClass = errorClass;
    }
 
    private String _errorStyle;
    
    public void setErrorStyle(String errorStyle)
    {
        _errorStyle = errorStyle;
    }
 
    private String _fatalClass;
    
    public void setFatalClass(String fatalClass)
    {
        _fatalClass = fatalClass;
    }
 
    private String _fatalStyle;
    
    public void setFatalStyle(String fatalStyle)
    {
        _fatalStyle = fatalStyle;
    }
 
    private String _infoClass;
    
    public void setInfoClass(String infoClass)
    {
        _infoClass = infoClass;
    }
 
    private String _infoStyle;
    
    public void setInfoStyle(String infoStyle)
    {
        _infoStyle = infoStyle;
    }
 
    private String _title;
    
    public void setTitle(String title)
    {
        _title = title;
    }
 
    private String _tooltip;
    
    public void setTooltip(String tooltip)
    {
        _tooltip = tooltip;
    }
 
    private String _warnClass;
    
    public void setWarnClass(String warnClass)
    {
        _warnClass = warnClass;
    }
 
    private String _warnStyle;
    
    public void setWarnStyle(String warnStyle)
    {
        _warnStyle = warnStyle;
    }
 
    private String _globalOnly;
    
    public void setGlobalOnly(String globalOnly)
    {
        _globalOnly = globalOnly;
    }
 
    private String _showDetail;
    
    public void setShowDetail(String showDetail)
    {
        _showDetail = showDetail;
    }
 
    private String _showSummary;
    
    public void setShowSummary(String showSummary)
    {
        _showSummary = showSummary;
    }

    protected void setProperties(UIComponent component)
    {
        if (!(component instanceof javax.faces.component.html.HtmlMessages))
        {
            throw new IllegalArgumentException("Component "+
                component.getClass().getName() +" is no javax.faces.component.html.HtmlMessages");
        }
        
        javax.faces.component.html.HtmlMessages comp = (javax.faces.component.html.HtmlMessages) component;
        
        super.setProperties(component);
        
        FacesContext context = getFacesContext();

        if (_layout != null)
        {
            if (isValueReference(_layout))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_layout);
                comp.setValueBinding("layout", vb);
            }
            else
            {
                comp.getAttributes().put("layout", _layout);
            }
        } 
        if (_style != null)
        {
            if (isValueReference(_style))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_style);
                comp.setValueBinding("style", vb);
            }
            else
            {
                comp.getAttributes().put("style", _style);
            }
        } 
        if (_styleClass != null)
        {
            if (isValueReference(_styleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_styleClass);
                comp.setValueBinding("styleClass", vb);
            }
            else
            {
                comp.getAttributes().put("styleClass", _styleClass);
            }
        } 
        if (_errorClass != null)
        {
            if (isValueReference(_errorClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_errorClass);
                comp.setValueBinding("errorClass", vb);
            }
            else
            {
                comp.getAttributes().put("errorClass", _errorClass);
            }
        } 
        if (_errorStyle != null)
        {
            if (isValueReference(_errorStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_errorStyle);
                comp.setValueBinding("errorStyle", vb);
            }
            else
            {
                comp.getAttributes().put("errorStyle", _errorStyle);
            }
        } 
        if (_fatalClass != null)
        {
            if (isValueReference(_fatalClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_fatalClass);
                comp.setValueBinding("fatalClass", vb);
            }
            else
            {
                comp.getAttributes().put("fatalClass", _fatalClass);
            }
        } 
        if (_fatalStyle != null)
        {
            if (isValueReference(_fatalStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_fatalStyle);
                comp.setValueBinding("fatalStyle", vb);
            }
            else
            {
                comp.getAttributes().put("fatalStyle", _fatalStyle);
            }
        } 
        if (_infoClass != null)
        {
            if (isValueReference(_infoClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_infoClass);
                comp.setValueBinding("infoClass", vb);
            }
            else
            {
                comp.getAttributes().put("infoClass", _infoClass);
            }
        } 
        if (_infoStyle != null)
        {
            if (isValueReference(_infoStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_infoStyle);
                comp.setValueBinding("infoStyle", vb);
            }
            else
            {
                comp.getAttributes().put("infoStyle", _infoStyle);
            }
        } 
        if (_title != null)
        {
            if (isValueReference(_title))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_title);
                comp.setValueBinding("title", vb);
            }
            else
            {
                comp.getAttributes().put("title", _title);
            }
        } 
        if (_tooltip != null)
        {
            if (isValueReference(_tooltip))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_tooltip);
                comp.setValueBinding("tooltip", vb);
            }
            else
            {
                comp.getAttributes().put("tooltip", Boolean.valueOf(_tooltip));
            }
        } 
        if (_warnClass != null)
        {
            if (isValueReference(_warnClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_warnClass);
                comp.setValueBinding("warnClass", vb);
            }
            else
            {
                comp.getAttributes().put("warnClass", _warnClass);
            }
        } 
        if (_warnStyle != null)
        {
            if (isValueReference(_warnStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_warnStyle);
                comp.setValueBinding("warnStyle", vb);
            }
            else
            {
                comp.getAttributes().put("warnStyle", _warnStyle);
            }
        } 
        if (_globalOnly != null)
        {
            if (isValueReference(_globalOnly))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_globalOnly);
                comp.setValueBinding("globalOnly", vb);
            }
            else
            {
                comp.getAttributes().put("globalOnly", Boolean.valueOf(_globalOnly));
            }
        } 
        if (_showDetail != null)
        {
            if (isValueReference(_showDetail))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showDetail);
                comp.setValueBinding("showDetail", vb);
            }
            else
            {
                comp.getAttributes().put("showDetail", Boolean.valueOf(_showDetail));
            }
        } 
        if (_showSummary != null)
        {
            if (isValueReference(_showSummary))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showSummary);
                comp.setValueBinding("showSummary", vb);
            }
            else
            {
                comp.getAttributes().put("showSummary", Boolean.valueOf(_showSummary));
            }
        } 
    }

    public void release()
    {
        super.release();
        _layout = null;
        _style = null;
        _styleClass = null;
        _errorClass = null;
        _errorStyle = null;
        _fatalClass = null;
        _fatalStyle = null;
        _infoClass = null;
        _infoStyle = null;
        _title = null;
        _tooltip = null;
        _warnClass = null;
        _warnStyle = null;
        _globalOnly = null;
        _showDetail = null;
        _showSummary = null;
    }
}