ParserComplexElement.java

  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.  * ParserComplexElementClass
  38.  *
  39.  */
  40. public class ParserComplexElement
  41. {
  42.     private String _strTagName;
  43.     private String _strOpenSubstWithParam;
  44.     private String _strCloseSubstWithParam;
  45.     private String _strOpenSubstWithoutParam;
  46.     private String _strCloseSubstWithoutParam;
  47.     private String _strInternalSubst;
  48.     private boolean _bProcessInternalTags;
  49.     private boolean _bAcceptParam;
  50.     private boolean _bRequiresQuotedParam;

  51.     /**
  52.      *
  53.      * @param strTagName
  54.      *            strTagName
  55.      * @param strOpenSubstWithParam
  56.      *            strOpenSubstWithParam
  57.      * @param strCloseSubstWithParam
  58.      *            strCloseSubstWithParam
  59.      * @param strOpenSubstWithoutParam
  60.      *            strOpenSubstWithoutParam
  61.      * @param strCloseSubstWithoutParam
  62.      *            strCloseSubstWithoutParam
  63.      * @param strInternalSubst
  64.      *            strInternalSubst
  65.      * @param bProcessInternalTags
  66.      *            bProcessInternalTags
  67.      * @param bAcceptParam
  68.      *            bAcceptParam
  69.      * @param bRequiresQuotedParam
  70.      *            bRequiresQuotedParam
  71.      */
  72.     public ParserComplexElement( String strTagName, String strOpenSubstWithParam, String strCloseSubstWithParam, String strOpenSubstWithoutParam,
  73.             String strCloseSubstWithoutParam, String strInternalSubst, boolean bProcessInternalTags, boolean bAcceptParam, boolean bRequiresQuotedParam )
  74.     {
  75.         _strTagName = strTagName;
  76.         _strOpenSubstWithParam = strOpenSubstWithParam;
  77.         _strCloseSubstWithParam = strCloseSubstWithParam;
  78.         _strOpenSubstWithoutParam = strOpenSubstWithoutParam;
  79.         _strCloseSubstWithoutParam = strCloseSubstWithoutParam;
  80.         _strInternalSubst = strInternalSubst;
  81.         _bProcessInternalTags = bProcessInternalTags;
  82.         _bAcceptParam = bAcceptParam;
  83.         _bRequiresQuotedParam = bRequiresQuotedParam;
  84.     }

  85.     /**
  86.      *
  87.      * @return return tag name
  88.      */
  89.     public String getTagName( )
  90.     {
  91.         return _strTagName;
  92.     }

  93.     /**
  94.      * set tag name
  95.      *
  96.      * @param strTagName
  97.      *            strTagName
  98.      */
  99.     public void setTagName( String strTagName )
  100.     {
  101.         _strTagName = strTagName;
  102.     }

  103.     /**
  104.      * OpenSubstWithParam(
  105.      *
  106.      * @return OpenSubstWithParam(
  107.      */
  108.     public String getOpenSubstWithParam( )
  109.     {
  110.         return _strOpenSubstWithParam;
  111.     }

  112.     /**
  113.      *
  114.      * @param strOpenSubstWithParam
  115.      *            strOpenSubstWithParam
  116.      */
  117.     public void setOpenSubstWithParam( String strOpenSubstWithParam )
  118.     {
  119.         _strOpenSubstWithParam = strOpenSubstWithParam;
  120.     }

  121.     /**
  122.      *
  123.      * @return CloseSubstWithParam
  124.      */
  125.     public String getCloseSubstWithParam( )
  126.     {
  127.         return _strCloseSubstWithParam;
  128.     }

  129.     /**
  130.      *
  131.      * @param strCloseSubstWithParam
  132.      *            trCloseSubstWithParam
  133.      */
  134.     public void setCloseSubstWithParam( String strCloseSubstWithParam )
  135.     {
  136.         _strCloseSubstWithParam = strCloseSubstWithParam;
  137.     }

  138.     /**
  139.      *
  140.      * @return OpenSubstWithoutParam
  141.      */
  142.     public String getOpenSubstWithoutParam( )
  143.     {
  144.         return _strOpenSubstWithoutParam;
  145.     }

  146.     /**
  147.      *
  148.      * @param strOpenSubstWithoutParam
  149.      *            strOpenSubstWithoutParam
  150.      */
  151.     public void setOpenSubstWithoutParam( String strOpenSubstWithoutParam )
  152.     {
  153.         _strOpenSubstWithoutParam = strOpenSubstWithoutParam;
  154.     }

  155.     /**
  156.      *
  157.      * @return CloseSubstWithoutParam
  158.      */
  159.     public String getCloseSubstWithoutParam( )
  160.     {
  161.         return _strCloseSubstWithoutParam;
  162.     }

  163.     /**
  164.      *
  165.      * @param strCloseSubstWithoutParam
  166.      *            strCloseSubstWithoutParam
  167.      */
  168.     public void setCloseSubstWithoutParam( String strCloseSubstWithoutParam )
  169.     {
  170.         _strCloseSubstWithoutParam = strCloseSubstWithoutParam;
  171.     }

  172.     /**
  173.      *
  174.      * @return InternalSubst
  175.      */
  176.     public String getInternalSubst( )
  177.     {
  178.         return _strInternalSubst;
  179.     }

  180.     /**
  181.      *
  182.      * @param strInternalSubst
  183.      *            strInternalSubst
  184.      */
  185.     public void setInternalSubst( String strInternalSubst )
  186.     {
  187.         _strInternalSubst = strInternalSubst;
  188.     }

  189.     /**
  190.      *
  191.      * @return isProcessInternalTags
  192.      */
  193.     public boolean isProcessInternalTags( )
  194.     {
  195.         return _bProcessInternalTags;
  196.     }

  197.     /**
  198.      *
  199.      * @param bProcessInternalTags
  200.      *            bProcessInternalTags
  201.      */
  202.     public void setProcessInternalTags( boolean bProcessInternalTags )
  203.     {
  204.         _bProcessInternalTags = bProcessInternalTags;
  205.     }

  206.     /**
  207.      *
  208.      * @return isAcceptParam
  209.      */
  210.     public boolean isAcceptParam( )
  211.     {
  212.         return _bAcceptParam;
  213.     }

  214.     /**
  215.      *
  216.      * @param bAcceptParam
  217.      *            bAcceptParam
  218.      */
  219.     public void setAcceptParam( boolean bAcceptParam )
  220.     {
  221.         _bAcceptParam = bAcceptParam;
  222.     }

  223.     /**
  224.      *
  225.      * @return RequiresQuotedParam
  226.      */
  227.     public boolean isRequiresQuotedParam( )
  228.     {
  229.         return _bRequiresQuotedParam;
  230.     }

  231.     /**
  232.      *
  233.      * @param bRequiresQuotedParam
  234.      *            bRequiresQuotedParam
  235.      */
  236.     public void setRequiresQuotedParam( boolean bRequiresQuotedParam )
  237.     {
  238.         _bRequiresQuotedParam = bRequiresQuotedParam;
  239.     }
  240. }