001    /**
002     * Copyright (c) 2000-2013 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.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    }