001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.taglib.aui.base;
016    
017    import javax.servlet.jsp.JspException;
018    
019    /**
020     * @author Eduardo Lundgren
021     * @author Bruno Basto
022     * @author Nathan Cavanaugh
023     * @author Julio Camarero
024     * @generated
025     */
026    public class BaseModelContextTag extends com.liferay.taglib.util.IncludeTag {
027    
028            @Override
029            public int doStartTag() throws JspException {
030                    setAttributeNamespace(_ATTRIBUTE_NAMESPACE);
031    
032                    return super.doStartTag();
033            }
034    
035            public java.lang.Object getBean() {
036                    return _bean;
037            }
038    
039            public java.lang.Class<?> getModel() {
040                    return _model;
041            }
042    
043            public void setBean(java.lang.Object bean) {
044                    _bean = bean;
045    
046                    setScopedAttribute("bean", bean);
047            }
048    
049            public void setModel(java.lang.Class<?> model) {
050                    _model = model;
051    
052                    setScopedAttribute("model", model);
053            }
054    
055            @Override
056            protected void cleanUp() {
057                    _bean = null;
058                    _model = null;
059            }
060    
061            @Override
062            protected String getPage() {
063                    return _PAGE;
064            }
065    
066            protected static final String _ATTRIBUTE_NAMESPACE = "aui:model-context:";
067    
068            private static final String _PAGE =
069                    "/html/taglib/aui/model_context/page.jsp";
070    
071            private java.lang.Object _bean = null;
072            private java.lang.Class<?> _model = null;
073    
074    }