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.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 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 long getClassNameId() {
034                    return _classNameId;
035            }
036    
037            public long getClassPK() {
038                    return _classPK;
039            }
040    
041            public java.lang.String getFieldName() {
042                    return _fieldName;
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 java.lang.String getMode() {
054                    return _mode;
055            }
056    
057            public boolean getReadOnly() {
058                    return _readOnly;
059            }
060    
061            public boolean getRepeatable() {
062                    return _repeatable;
063            }
064    
065            public java.util.Locale getRequestedLocale() {
066                    return _requestedLocale;
067            }
068    
069            public void setClassNameId(long classNameId) {
070                    _classNameId = classNameId;
071    
072                    setScopedAttribute("classNameId", classNameId);
073            }
074    
075            public void setClassPK(long classPK) {
076                    _classPK = classPK;
077    
078                    setScopedAttribute("classPK", classPK);
079            }
080    
081            public void setFieldName(java.lang.String fieldName) {
082                    _fieldName = fieldName;
083    
084                    setScopedAttribute("fieldName", fieldName);
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 setMode(java.lang.String mode) {
100                    _mode = mode;
101    
102                    setScopedAttribute("mode", mode);
103            }
104    
105            public void setReadOnly(boolean readOnly) {
106                    _readOnly = readOnly;
107    
108                    setScopedAttribute("readOnly", readOnly);
109            }
110    
111            public void setRepeatable(boolean repeatable) {
112                    _repeatable = repeatable;
113    
114                    setScopedAttribute("repeatable", repeatable);
115            }
116    
117            public void setRequestedLocale(java.util.Locale requestedLocale) {
118                    _requestedLocale = requestedLocale;
119    
120                    setScopedAttribute("requestedLocale", requestedLocale);
121            }
122    
123            @Override
124            protected void cleanUp() {
125                    _classNameId = 0;
126                    _classPK = 0;
127                    _fieldName = null;
128                    _fields = null;
129                    _fieldsNamespace = null;
130                    _mode = null;
131                    _readOnly = false;
132                    _repeatable = true;
133                    _requestedLocale = null;
134            }
135    
136            @Override
137            protected String getEndPage() {
138                    return _END_PAGE;
139            }
140    
141            @Override
142            protected String getStartPage() {
143                    return _START_PAGE;
144            }
145    
146            @Override
147            protected void setAttributes(HttpServletRequest request) {
148                    setNamespacedAttribute(request, "classNameId", _classNameId);
149                    setNamespacedAttribute(request, "classPK", _classPK);
150                    setNamespacedAttribute(request, "fieldName", _fieldName);
151                    setNamespacedAttribute(request, "fields", _fields);
152                    setNamespacedAttribute(request, "fieldsNamespace", _fieldsNamespace);
153                    setNamespacedAttribute(request, "mode", _mode);
154                    setNamespacedAttribute(request, "readOnly", _readOnly);
155                    setNamespacedAttribute(request, "repeatable", _repeatable);
156                    setNamespacedAttribute(request, "requestedLocale", _requestedLocale);
157            }
158    
159            protected static final String _ATTRIBUTE_NAMESPACE = "ddm:html:";
160    
161            private static final String _END_PAGE =
162                    "/html/taglib/ddm/html/end.jsp";
163    
164            private static final String _START_PAGE =
165                    "/html/taglib/ddm/html/start.jsp";
166    
167            private long _classNameId = 0;
168            private long _classPK = 0;
169            private java.lang.String _fieldName = null;
170            private com.liferay.portlet.dynamicdatamapping.storage.Fields _fields = null;
171            private java.lang.String _fieldsNamespace = null;
172            private java.lang.String _mode = null;
173            private boolean _readOnly = false;
174            private boolean _repeatable = true;
175            private java.util.Locale _requestedLocale = null;
176    
177    }