001    /**
002     * Copyright (c) 2000-2013 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.String getDefaultLanguageId() {
040                    return _defaultLanguageId;
041            }
042    
043            public java.lang.Class<?> getModel() {
044                    return _model;
045            }
046    
047            public void setBean(java.lang.Object bean) {
048                    _bean = bean;
049    
050                    setScopedAttribute("bean", bean);
051            }
052    
053            public void setDefaultLanguageId(java.lang.String defaultLanguageId) {
054                    _defaultLanguageId = defaultLanguageId;
055    
056                    setScopedAttribute("defaultLanguageId", defaultLanguageId);
057            }
058    
059            public void setModel(java.lang.Class<?> model) {
060                    _model = model;
061    
062                    setScopedAttribute("model", model);
063            }
064    
065            @Override
066            protected void cleanUp() {
067                    _bean = null;
068                    _defaultLanguageId = null;
069                    _model = null;
070            }
071    
072            @Override
073            protected String getPage() {
074                    return _PAGE;
075            }
076    
077            protected static final String _ATTRIBUTE_NAMESPACE = "aui:model-context:";
078    
079            private static final String _PAGE =
080                    "/html/taglib/aui/model_context/page.jsp";
081    
082            private java.lang.Object _bean = null;
083            private java.lang.String _defaultLanguageId = null;
084            private java.lang.Class<?> _model = null;
085    
086    }