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.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                    super.cleanUp();
116    
117                    _checkRequired = true;
118                    _classNameId = 0;
119                    _classPK = 0;
120                    _fields = null;
121                    _fieldsNamespace = null;
122                    _readOnly = false;
123                    _repeatable = true;
124                    _requestedLocale = null;
125            }
126    
127            @Override
128            protected String getEndPage() {
129                    return _END_PAGE;
130            }
131    
132            @Override
133            protected String getStartPage() {
134                    return _START_PAGE;
135            }
136    
137            @Override
138            protected void setAttributes(HttpServletRequest request) {
139                    setNamespacedAttribute(request, "checkRequired", _checkRequired);
140                    setNamespacedAttribute(request, "classNameId", _classNameId);
141                    setNamespacedAttribute(request, "classPK", _classPK);
142                    setNamespacedAttribute(request, "fields", _fields);
143                    setNamespacedAttribute(request, "fieldsNamespace", _fieldsNamespace);
144                    setNamespacedAttribute(request, "readOnly", _readOnly);
145                    setNamespacedAttribute(request, "repeatable", _repeatable);
146                    setNamespacedAttribute(request, "requestedLocale", _requestedLocale);
147            }
148    
149            protected static final String _ATTRIBUTE_NAMESPACE = "ddm:html:";
150    
151            private static final String _END_PAGE =
152                    "/html/taglib/ddm/html/end.jsp";
153    
154            private static final String _START_PAGE =
155                    "/html/taglib/ddm/html/start.jsp";
156    
157            private boolean _checkRequired = true;
158            private long _classNameId = 0;
159            private long _classPK = 0;
160            private com.liferay.portlet.dynamicdatamapping.storage.Fields _fields = null;
161            private java.lang.String _fieldsNamespace = null;
162            private boolean _readOnly = false;
163            private boolean _repeatable = true;
164            private java.util.Locale _requestedLocale = null;
165    
166    }