View Javadoc
1   /*
2    * Copyright (c) 2002-2022, City of Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.portal.business.editor;
35  
36  /**
37   *
38   * ParserComplexElementClass
39   *
40   */
41  public class ParserComplexElement
42  {
43      private String _strTagName;
44      private String _strOpenSubstWithParam;
45      private String _strCloseSubstWithParam;
46      private String _strOpenSubstWithoutParam;
47      private String _strCloseSubstWithoutParam;
48      private String _strInternalSubst;
49      private boolean _bProcessInternalTags;
50      private boolean _bAcceptParam;
51      private boolean _bRequiresQuotedParam;
52  
53      /**
54       *
55       * @param strTagName
56       *            strTagName
57       * @param strOpenSubstWithParam
58       *            strOpenSubstWithParam
59       * @param strCloseSubstWithParam
60       *            strCloseSubstWithParam
61       * @param strOpenSubstWithoutParam
62       *            strOpenSubstWithoutParam
63       * @param strCloseSubstWithoutParam
64       *            strCloseSubstWithoutParam
65       * @param strInternalSubst
66       *            strInternalSubst
67       * @param bProcessInternalTags
68       *            bProcessInternalTags
69       * @param bAcceptParam
70       *            bAcceptParam
71       * @param bRequiresQuotedParam
72       *            bRequiresQuotedParam
73       */
74      public ParserComplexElement( String strTagName, String strOpenSubstWithParam, String strCloseSubstWithParam, String strOpenSubstWithoutParam,
75              String strCloseSubstWithoutParam, String strInternalSubst, boolean bProcessInternalTags, boolean bAcceptParam, boolean bRequiresQuotedParam )
76      {
77          _strTagName = strTagName;
78          _strOpenSubstWithParam = strOpenSubstWithParam;
79          _strCloseSubstWithParam = strCloseSubstWithParam;
80          _strOpenSubstWithoutParam = strOpenSubstWithoutParam;
81          _strCloseSubstWithoutParam = strCloseSubstWithoutParam;
82          _strInternalSubst = strInternalSubst;
83          _bProcessInternalTags = bProcessInternalTags;
84          _bAcceptParam = bAcceptParam;
85          _bRequiresQuotedParam = bRequiresQuotedParam;
86      }
87  
88      /**
89       *
90       * @return return tag name
91       */
92      public String getTagName( )
93      {
94          return _strTagName;
95      }
96  
97      /**
98       * set tag name
99       * 
100      * @param strTagName
101      *            strTagName
102      */
103     public void setTagName( String strTagName )
104     {
105         _strTagName = strTagName;
106     }
107 
108     /**
109      * OpenSubstWithParam(
110      * 
111      * @return OpenSubstWithParam(
112      */
113     public String getOpenSubstWithParam( )
114     {
115         return _strOpenSubstWithParam;
116     }
117 
118     /**
119      *
120      * @param strOpenSubstWithParam
121      *            strOpenSubstWithParam
122      */
123     public void setOpenSubstWithParam( String strOpenSubstWithParam )
124     {
125         _strOpenSubstWithParam = strOpenSubstWithParam;
126     }
127 
128     /**
129      *
130      * @return CloseSubstWithParam
131      */
132     public String getCloseSubstWithParam( )
133     {
134         return _strCloseSubstWithParam;
135     }
136 
137     /**
138      *
139      * @param strCloseSubstWithParam
140      *            trCloseSubstWithParam
141      */
142     public void setCloseSubstWithParam( String strCloseSubstWithParam )
143     {
144         _strCloseSubstWithParam = strCloseSubstWithParam;
145     }
146 
147     /**
148      *
149      * @return OpenSubstWithoutParam
150      */
151     public String getOpenSubstWithoutParam( )
152     {
153         return _strOpenSubstWithoutParam;
154     }
155 
156     /**
157      *
158      * @param strOpenSubstWithoutParam
159      *            strOpenSubstWithoutParam
160      */
161     public void setOpenSubstWithoutParam( String strOpenSubstWithoutParam )
162     {
163         _strOpenSubstWithoutParam = strOpenSubstWithoutParam;
164     }
165 
166     /**
167      *
168      * @return CloseSubstWithoutParam
169      */
170     public String getCloseSubstWithoutParam( )
171     {
172         return _strCloseSubstWithoutParam;
173     }
174 
175     /**
176      *
177      * @param strCloseSubstWithoutParam
178      *            strCloseSubstWithoutParam
179      */
180     public void setCloseSubstWithoutParam( String strCloseSubstWithoutParam )
181     {
182         _strCloseSubstWithoutParam = strCloseSubstWithoutParam;
183     }
184 
185     /**
186      *
187      * @return InternalSubst
188      */
189     public String getInternalSubst( )
190     {
191         return _strInternalSubst;
192     }
193 
194     /**
195      *
196      * @param strInternalSubst
197      *            strInternalSubst
198      */
199     public void setInternalSubst( String strInternalSubst )
200     {
201         _strInternalSubst = strInternalSubst;
202     }
203 
204     /**
205      *
206      * @return isProcessInternalTags
207      */
208     public boolean isProcessInternalTags( )
209     {
210         return _bProcessInternalTags;
211     }
212 
213     /**
214      *
215      * @param bProcessInternalTags
216      *            bProcessInternalTags
217      */
218     public void setProcessInternalTags( boolean bProcessInternalTags )
219     {
220         _bProcessInternalTags = bProcessInternalTags;
221     }
222 
223     /**
224      *
225      * @return isAcceptParam
226      */
227     public boolean isAcceptParam( )
228     {
229         return _bAcceptParam;
230     }
231 
232     /**
233      *
234      * @param bAcceptParam
235      *            bAcceptParam
236      */
237     public void setAcceptParam( boolean bAcceptParam )
238     {
239         _bAcceptParam = bAcceptParam;
240     }
241 
242     /**
243      *
244      * @return RequiresQuotedParam
245      */
246     public boolean isRequiresQuotedParam( )
247     {
248         return _bRequiresQuotedParam;
249     }
250 
251     /**
252      *
253      * @param bRequiresQuotedParam
254      *            bRequiresQuotedParam
255      */
256     public void setRequiresQuotedParam( boolean bRequiresQuotedParam )
257     {
258         _bRequiresQuotedParam = bRequiresQuotedParam;
259     }
260 }