View Javadoc
1   /*
2    * Copyright (c) 2002-2014, Mairie de 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   *
39   * ParserComplexElementClass
40   *
41   */
42  public class ParserComplexElement
43  {
44      private String _strTagName;
45      private String _strOpenSubstWithParam;
46      private String _strCloseSubstWithParam;
47      private String _strOpenSubstWithoutParam;
48      private String _strCloseSubstWithoutParam;
49      private String _strInternalSubst;
50      private boolean _bProcessInternalTags;
51      private boolean _bAcceptParam;
52      private boolean _bRequiresQuotedParam;
53  
54      /**
55       *
56       * @param strTagName strTagName
57       * @param strOpenSubstWithParam strOpenSubstWithParam
58       * @param strCloseSubstWithParam strCloseSubstWithParam
59       * @param strOpenSubstWithoutParam strOpenSubstWithoutParam
60       * @param strCloseSubstWithoutParam strCloseSubstWithoutParam
61       * @param strInternalSubst strInternalSubst
62       * @param bProcessInternalTags bProcessInternalTags
63       * @param bAcceptParam bAcceptParam
64       * @param bRequiresQuotedParam bRequiresQuotedParam
65       */
66      public ParserComplexElement( String strTagName, String strOpenSubstWithParam, String strCloseSubstWithParam,
67          String strOpenSubstWithoutParam, String strCloseSubstWithoutParam, String strInternalSubst,
68          boolean bProcessInternalTags, boolean bAcceptParam, boolean bRequiresQuotedParam )
69      {
70          _strTagName = strTagName;
71          _strOpenSubstWithParam = strOpenSubstWithParam;
72          _strCloseSubstWithParam = strCloseSubstWithParam;
73          _strOpenSubstWithoutParam = strOpenSubstWithoutParam;
74          _strCloseSubstWithoutParam = strCloseSubstWithoutParam;
75          _strInternalSubst = strInternalSubst;
76          _bProcessInternalTags = bProcessInternalTags;
77          _bAcceptParam = bAcceptParam;
78          _bRequiresQuotedParam = bRequiresQuotedParam;
79      }
80  
81      /**
82       *
83       * @return return tag name
84       */
85      public String getTagName(  )
86      {
87          return _strTagName;
88      }
89  
90      /**
91       * set tag name
92       * @param strTagName strTagName
93       */
94      public void setTagName( String strTagName )
95      {
96          _strTagName = strTagName;
97      }
98  
99      /**
100      *OpenSubstWithParam(
101      * @return OpenSubstWithParam(
102      */
103     public String getOpenSubstWithParam(  )
104     {
105         return _strOpenSubstWithParam;
106     }
107 
108     /**
109      *
110      * @param strOpenSubstWithParam strOpenSubstWithParam
111      */
112     public void setOpenSubstWithParam( String strOpenSubstWithParam )
113     {
114         _strOpenSubstWithParam = strOpenSubstWithParam;
115     }
116 
117     /**
118      *
119      * @return CloseSubstWithParam
120      */
121     public String getCloseSubstWithParam(  )
122     {
123         return _strCloseSubstWithParam;
124     }
125 
126     /**
127      *
128      * @param strCloseSubstWithParam trCloseSubstWithParam
129      */
130     public void setCloseSubstWithParam( String strCloseSubstWithParam )
131     {
132         _strCloseSubstWithParam = strCloseSubstWithParam;
133     }
134 
135     /**
136      *
137      * @return OpenSubstWithoutParam
138      */
139     public String getOpenSubstWithoutParam(  )
140     {
141         return _strOpenSubstWithoutParam;
142     }
143 
144     /**
145      *
146      * @param strOpenSubstWithoutParam strOpenSubstWithoutParam
147      */
148     public void setOpenSubstWithoutParam( String strOpenSubstWithoutParam )
149     {
150         _strOpenSubstWithoutParam = strOpenSubstWithoutParam;
151     }
152 
153     /**
154      *
155      * @return CloseSubstWithoutParam
156      */
157     public String getCloseSubstWithoutParam(  )
158     {
159         return _strCloseSubstWithoutParam;
160     }
161 
162     /**
163      *
164      * @param strCloseSubstWithoutParam strCloseSubstWithoutParam
165      */
166     public void setCloseSubstWithoutParam( String strCloseSubstWithoutParam )
167     {
168         _strCloseSubstWithoutParam = strCloseSubstWithoutParam;
169     }
170 
171     /**
172      *
173      * @return InternalSubst
174      */
175     public String getInternalSubst(  )
176     {
177         return _strInternalSubst;
178     }
179 
180     /**
181      *
182      * @param strInternalSubst strInternalSubst
183      */
184     public void setInternalSubst( String strInternalSubst )
185     {
186         _strInternalSubst = strInternalSubst;
187     }
188 
189     /**
190      *
191      * @return isProcessInternalTags
192      */
193     public boolean isProcessInternalTags(  )
194     {
195         return _bProcessInternalTags;
196     }
197 
198     /**
199      *
200      * @param bProcessInternalTags bProcessInternalTags
201      */
202     public void setProcessInternalTags( boolean bProcessInternalTags )
203     {
204         _bProcessInternalTags = bProcessInternalTags;
205     }
206 
207     /**
208      *
209      * @return isAcceptParam
210      */
211     public boolean isAcceptParam(  )
212     {
213         return _bAcceptParam;
214     }
215 
216     /**
217      *
218      * @param bAcceptParam bAcceptParam
219      */
220     public void setAcceptParam( boolean bAcceptParam )
221     {
222         _bAcceptParam = bAcceptParam;
223     }
224 
225     /**
226      *
227      * @return RequiresQuotedParam
228      */
229     public boolean isRequiresQuotedParam(  )
230     {
231         return _bRequiresQuotedParam;
232     }
233 
234     /**
235      *
236      * @param bRequiresQuotedParam bRequiresQuotedParam
237      */
238     public void setRequiresQuotedParam( boolean bRequiresQuotedParam )
239     {
240         _bRequiresQuotedParam = bRequiresQuotedParam;
241     }
242 }