001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }