Mode.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.style;

  35. /**
  36.  * This class reprsents business objects Mode
  37.  */
  38. public class Mode
  39. {
  40.     private static final String EMPTY_STRING = "";
  41.     private int _nId;
  42.     private String _strDescription;
  43.     private String _strPath;
  44.     private String _strOutputXslPropertyMethod;
  45.     private String _strOutputXslPropertyVersion;
  46.     private String _strOutputXslPropertyMediaType;
  47.     private String _strOutputXslPropertyIndent;
  48.     private String _strOutputXslPropertyOmitXmlDeclaration;
  49.     private String _strOutputXslPropertyEncoding;
  50.     private String _strOutputXslPropertyStandalone;

  51.     /**
  52.      * Sets the mode identifier
  53.      *
  54.      * @param nId
  55.      *            the mode identifier
  56.      */
  57.     public void setId( int nId )
  58.     {
  59.         _nId = nId;
  60.     }

  61.     /**
  62.      * Returns the mode identifier
  63.      *
  64.      * @return the mode identifier
  65.      */
  66.     public int getId( )
  67.     {
  68.         return _nId;
  69.     }

  70.     /**
  71.      * Sets the name of the mode
  72.      *
  73.      * @param strDescription
  74.      *            the mode name
  75.      */
  76.     public void setDescription( String strDescription )
  77.     {
  78.         _strDescription = strDescription;
  79.     }

  80.     /**
  81.      * Returns the name of the mode
  82.      *
  83.      * @return mode name
  84.      */
  85.     public String getDescription( )
  86.     {
  87.         return _strDescription;
  88.     }

  89.     /**
  90.      * Sets the path of the stylesheet according to their mode
  91.      *
  92.      * @param strPath
  93.      *            the path
  94.      */
  95.     public void setPath( String strPath )
  96.     {
  97.         _strPath = strPath;
  98.     }

  99.     /**
  100.      * Returns the path of the stylesheet according to their mode
  101.      *
  102.      * @return path
  103.      */
  104.     public String getPath( )
  105.     {
  106.         return _strPath;
  107.     }

  108.     /**
  109.      * @return Returns the _strOutputXslPropertyEncoding.
  110.      */
  111.     public String getOutputXslPropertyEncoding( )
  112.     {
  113.         return _strOutputXslPropertyEncoding;
  114.     }

  115.     /**
  116.      * @param strOutPutXslPropertyEncoding
  117.      *            The _strOutputXslPropertyEncoding to set.
  118.      */
  119.     public void setOutputXslPropertyEncoding( String strOutPutXslPropertyEncoding )
  120.     {
  121.         _strOutputXslPropertyEncoding = ( strOutPutXslPropertyEncoding == null ) ? EMPTY_STRING : strOutPutXslPropertyEncoding;
  122.     }

  123.     /**
  124.      * @return Returns the _strOutputXslPropertyIndent.
  125.      */
  126.     public String getOutputXslPropertyIndent( )
  127.     {
  128.         return _strOutputXslPropertyIndent;
  129.     }

  130.     /**
  131.      * @param strOutPutXslPropertyIndent
  132.      *            The _strOutputXslPropertyIndent to set.
  133.      */
  134.     public void setOutputXslPropertyIndent( String strOutPutXslPropertyIndent )
  135.     {
  136.         _strOutputXslPropertyIndent = ( strOutPutXslPropertyIndent == null ) ? EMPTY_STRING : strOutPutXslPropertyIndent;
  137.     }

  138.     /**
  139.      * @return Returns the _strOutputXslPropertyMediaType.
  140.      */
  141.     public String getOutputXslPropertyMediaType( )
  142.     {
  143.         return _strOutputXslPropertyMediaType;
  144.     }

  145.     /**
  146.      * @param strOutPutXslPropertyMediaType
  147.      *            The _strOutputXslPropertyMediaType to set.
  148.      */
  149.     public void setOutputXslPropertyMediaType( String strOutPutXslPropertyMediaType )
  150.     {
  151.         _strOutputXslPropertyMediaType = ( strOutPutXslPropertyMediaType == null ) ? EMPTY_STRING : strOutPutXslPropertyMediaType;
  152.     }

  153.     /**
  154.      * @return Returns the _strOutputXslPropertyMethod.
  155.      */
  156.     public String getOutputXslPropertyMethod( )
  157.     {
  158.         return _strOutputXslPropertyMethod;
  159.     }

  160.     /**
  161.      * @param strOutPutXslPropertyMethod
  162.      *            The _strOutputXslPropertyMethod to set.
  163.      */
  164.     public void setOutputXslPropertyMethod( String strOutPutXslPropertyMethod )
  165.     {
  166.         _strOutputXslPropertyMethod = ( strOutPutXslPropertyMethod == null ) ? EMPTY_STRING : strOutPutXslPropertyMethod;
  167.     }

  168.     /**
  169.      * @return Returns the _strOutputXslPropertyOmitXmlDeclaration.
  170.      */
  171.     public String getOutputXslPropertyOmitXmlDeclaration( )
  172.     {
  173.         return _strOutputXslPropertyOmitXmlDeclaration;
  174.     }

  175.     /**
  176.      * @param strOutPutXslPropertyOmitXmlDeclaration
  177.      *            The _strOutputXslPropertyOmitXmlDeclaration to set.
  178.      */
  179.     public void setOutputXslPropertyOmitXmlDeclaration( String strOutPutXslPropertyOmitXmlDeclaration )
  180.     {
  181.         _strOutputXslPropertyOmitXmlDeclaration = ( strOutPutXslPropertyOmitXmlDeclaration == null ) ? EMPTY_STRING : strOutPutXslPropertyOmitXmlDeclaration;
  182.     }

  183.     /**
  184.      * @return Returns the _strOutputXslPropertyStandalone.
  185.      */
  186.     public String getOutputXslPropertyStandalone( )
  187.     {
  188.         return _strOutputXslPropertyStandalone;
  189.     }

  190.     /**
  191.      * @param strOutPutXslPropertyStandalone
  192.      *            The _strOutputXslPropertyStandalone to set.
  193.      */
  194.     public void setOutputXslPropertyStandalone( String strOutPutXslPropertyStandalone )
  195.     {
  196.         _strOutputXslPropertyStandalone = ( strOutPutXslPropertyStandalone == null ) ? EMPTY_STRING : strOutPutXslPropertyStandalone;
  197.     }

  198.     /**
  199.      * @return Returns the _strOutputXslPropertyVersion.
  200.      */
  201.     public String getOutputXslPropertyVersion( )
  202.     {
  203.         return _strOutputXslPropertyVersion;
  204.     }

  205.     /**
  206.      * @param strOutPutXslPropertyVersion
  207.      *            The _strOutputXslPropertyVersion to set.
  208.      */
  209.     public void setOutputXslPropertyVersion( String strOutPutXslPropertyVersion )
  210.     {
  211.         _strOutputXslPropertyVersion = ( strOutPutXslPropertyVersion == null ) ? EMPTY_STRING : strOutPutXslPropertyVersion;
  212.     }
  213. }