001    /**
002     * Copyright (c) 2000-present 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.ddm.base;
016    
017    import javax.servlet.http.HttpServletRequest;
018    import javax.servlet.jsp.JspException;
019    
020    /**
021     * @author Bruno Basto
022     * @generated
023     */
024    public abstract class BaseHTMLTag extends com.liferay.taglib.util.IncludeTag {
025    
026            @Override
027            public int doStartTag() throws JspException {
028                    setAttributeNamespace(_ATTRIBUTE_NAMESPACE);
029    
030                    return super.doStartTag();
031            }
032    
033            public boolean getCheckRequired() {
034                    return _checkRequired;
035            }
036    
037            public long getClassNameId() {
038                    return _classNameId;
039            }
040    
041            public long getClassPK() {
042                    return _classPK;
043            }
044    
045            public com.liferay.portlet.dynamicdatamapping.storage.Fields getFields() {
046                    return _fields;
047            }
048    
049            public java.lang.String getFieldsNamespace() {
050                    return _fieldsNamespace;
051            }
052    
053            public boolean getReadOnly() {
054                    return _readOnly;
055            }
056    
057            public boolean getRepeatable() {
058                    return _repeatable;
059            }
060    
061            public java.util.Locale getRequestedLocale() {
062                    return _requestedLocale;
063            }
064    
065            public boolean getShowEmptyFieldLabel() {
066                    return _showEmptyFieldLabel;
067            }
068    
069            public void setCheckRequired(boolean checkRequired) {
070                    _checkRequired = checkRequired;
071    
072                    setScopedAttribute("checkRequired", checkRequired);
073            }
074    
075            public void setClassNameId(long classNameId) {
076                    _classNameId = classNameId;
077    
078                    setScopedAttribute("classNameId", classNameId);
079            }
080    
081            public void setClassPK(long classPK) {
082                    _classPK = classPK;
083    
084                    setScopedAttribute("classPK", classPK);
085            }
086    
087            public void setFields(com.liferay.portlet.dynamicdatamapping.storage.Fields fields) {
088                    _fields = fields;
089    
090                    setScopedAttribute("fields", fields);
091            }
092    
093            public void setFieldsNamespace(java.lang.String fieldsNamespace) {
094                    _fieldsNamespace = fieldsNamespace;
095    
096                    setScopedAttribute("fieldsNamespace", fieldsNamespace);
097            }
098    
099            public void setReadOnly(boolean readOnly) {
100                    _readOnly = readOnly;
101    
102                    setScopedAttribute("readOnly", readOnly);
103            }
104    
105            public void setRepeatable(boolean repeatable) {
106                    _repeatable = repeatable;
107    
108                    setScopedAttribute("repeatable", repeatable);
109            }
110    
111            public void setRequestedLocale(java.util.Locale requestedLocale) {
112                    _requestedLocale = requestedLocale;
113    
114                    setScopedAttribute("requestedLocale", requestedLocale);
115            }
116    
117            public void setShowEmptyFieldLabel(boolean showEmptyFieldLabel) {
118                    _showEmptyFieldLabel = showEmptyFieldLabel;
119    
120                    setScopedAttribute("showEmptyFieldLabel", showEmptyFieldLabel);
121            }
122    
123            @Override
124            protected void cleanUp() {
125                    super.cleanUp();
126    
127                    _checkRequired = true;
128                    _classNameId = 0;
129                    _classPK = 0;
130                    _fields = null;
131                    _fieldsNamespace = null;
132                    _readOnly = false;
133                    _repeatable = true;
134                    _requestedLocale = null;
135                    _showEmptyFieldLabel = true;
136            }
137    
138            @Override
139            protected String getEndPage() {
140                    return _END_PAGE;
141            }
142    
143            @Override
144            protected String getStartPage() {
145                    return _START_PAGE;
146            }
147    
148            @Override
149            protected void setAttributes(HttpServletRequest request) {
150                    setNamespacedAttribute(request, "checkRequired", _checkRequired);
151                    setNamespacedAttribute(request, "classNameId", _classNameId);
152                    setNamespacedAttribute(request, "classPK", _classPK);
153                    setNamespacedAttribute(request, "fields", _fields);
154                    setNamespacedAttribute(request, "fieldsNamespace", _fieldsNamespace);
155                    setNamespacedAttribute(request, "readOnly", _readOnly);
156                    setNamespacedAttribute(request, "repeatable", _repeatable);
157                    setNamespacedAttribute(request, "requestedLocale", _requestedLocale);
158                    setNamespacedAttribute(request, "showEmptyFieldLabel", _showEmptyFieldLabel);
159            }
160    
161            protected static final String _ATTRIBUTE_NAMESPACE = "ddm:html:";
162    
163            private static final String _END_PAGE =
164                    "/html/taglib/ddm/html/end.jsp";
165    
166            private static final String _START_PAGE =
167                    "/html/taglib/ddm/html/start.jsp";
168    
169            private boolean _checkRequired = true;
170            private long _classNameId = 0;
171            private long _classPK = 0;
172            private com.liferay.portlet.dynamicdatamapping.storage.Fields _fields = null;
173            private java.lang.String _fieldsNamespace = null;
174            private boolean _readOnly = false;
175            private boolean _repeatable = true;
176            private java.util.Locale _requestedLocale = null;
177            private boolean _showEmptyFieldLabel = true;
178    
179    }