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 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 void setCheckRequired(boolean checkRequired) {
066                    _checkRequired = checkRequired;
067    
068                    setScopedAttribute("checkRequired", checkRequired);
069            }
070    
071            public void setClassNameId(long classNameId) {
072                    _classNameId = classNameId;
073    
074                    setScopedAttribute("classNameId", classNameId);
075            }
076    
077            public void setClassPK(long classPK) {
078                    _classPK = classPK;
079    
080                    setScopedAttribute("classPK", classPK);
081            }
082    
083            public void setFields(com.liferay.portlet.dynamicdatamapping.storage.Fields fields) {
084                    _fields = fields;
085    
086                    setScopedAttribute("fields", fields);
087            }
088    
089            public void setFieldsNamespace(java.lang.String fieldsNamespace) {
090                    _fieldsNamespace = fieldsNamespace;
091    
092                    setScopedAttribute("fieldsNamespace", fieldsNamespace);
093            }
094    
095            public void setReadOnly(boolean readOnly) {
096                    _readOnly = readOnly;
097    
098                    setScopedAttribute("readOnly", readOnly);
099            }
100    
101            public void setRepeatable(boolean repeatable) {
102                    _repeatable = repeatable;
103    
104                    setScopedAttribute("repeatable", repeatable);
105            }
106    
107            public void setRequestedLocale(java.util.Locale requestedLocale) {
108                    _requestedLocale = requestedLocale;
109    
110                    setScopedAttribute("requestedLocale", requestedLocale);
111            }
112    
113            @Override
114            protected void cleanUp() {
115                    _checkRequired = true;
116                    _classNameId = 0;
117                    _classPK = 0;
118                    _fields = null;
119                    _fieldsNamespace = null;
120                    _readOnly = false;
121                    _repeatable = true;
122                    _requestedLocale = null;
123            }
124    
125            @Override
126            protected String getEndPage() {
127                    return _END_PAGE;
128            }
129    
130            @Override
131            protected String getStartPage() {
132                    return _START_PAGE;
133            }
134    
135            @Override
136            protected void setAttributes(HttpServletRequest request) {
137                    setNamespacedAttribute(request, "checkRequired", _checkRequired);
138                    setNamespacedAttribute(request, "classNameId", _classNameId);
139                    setNamespacedAttribute(request, "classPK", _classPK);
140                    setNamespacedAttribute(request, "fields", _fields);
141                    setNamespacedAttribute(request, "fieldsNamespace", _fieldsNamespace);
142                    setNamespacedAttribute(request, "readOnly", _readOnly);
143                    setNamespacedAttribute(request, "repeatable", _repeatable);
144                    setNamespacedAttribute(request, "requestedLocale", _requestedLocale);
145            }
146    
147            protected static final String _ATTRIBUTE_NAMESPACE = "ddm:html:";
148    
149            private static final String _END_PAGE =
150                    "/html/taglib/ddm/html/end.jsp";
151    
152            private static final String _START_PAGE =
153                    "/html/taglib/ddm/html/start.jsp";
154    
155            private boolean _checkRequired = true;
156            private long _classNameId = 0;
157            private long _classPK = 0;
158            private com.liferay.portlet.dynamicdatamapping.storage.Fields _fields = null;
159            private java.lang.String _fieldsNamespace = null;
160            private boolean _readOnly = false;
161            private boolean _repeatable = true;
162            private java.util.Locale _requestedLocale = null;
163    
164    }