XslExport.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.xsl;

  35. import fr.paris.lutece.portal.business.file.File;

  36. /**
  37.  *
  38.  * class DirectoryXsl
  39.  *
  40.  */

  41. /**
  42.  * @author vbroussard
  43.  *
  44.  */

  45. /**
  46.  * @author vbroussard
  47.  *
  48.  */
  49. public class XslExport
  50. {
  51.     public static final String RESOURCE_TYPE = "XSL_EXPORT";
  52.     private int _nIdXslExport;
  53.     private String _strTitle;
  54.     private String _strDescription;
  55.     private String _strExtension;
  56.     private File _file;
  57.     private String _strPlugin;

  58.     /**
  59.      *
  60.      * @return the id of the directory xsl
  61.      */
  62.     public int getIdXslExport( )
  63.     {
  64.         return _nIdXslExport;
  65.     }

  66.     /**
  67.      * set the id of the directory xsl
  68.      *
  69.      * @param idExport
  70.      *            the id of the directory xsl
  71.      */
  72.     public void setIdXslExport( int idExport )
  73.     {
  74.         _nIdXslExport = idExport;
  75.     }

  76.     /**
  77.      *
  78.      * @return the description of the directory xsl
  79.      */
  80.     public String getDescription( )
  81.     {
  82.         return _strDescription;
  83.     }

  84.     /**
  85.      * set the description of the directory xsl
  86.      *
  87.      * @param description
  88.      *            the description of the directory xsl
  89.      */
  90.     public void setDescription( String description )
  91.     {
  92.         _strDescription = description;
  93.     }

  94.     /**
  95.      *
  96.      * @return the title of the directory xsl
  97.      */
  98.     public String getTitle( )
  99.     {
  100.         return _strTitle;
  101.     }

  102.     /**
  103.      * set the title of the directory xsl
  104.      *
  105.      * @param title
  106.      *            the title of the directory xsl
  107.      */
  108.     public void setTitle( String title )
  109.     {
  110.         _strTitle = title;
  111.     }

  112.     /**
  113.      *
  114.      * @return the xsl file of the directory xsl
  115.      */
  116.     public File getFile( )
  117.     {
  118.         return _file;
  119.     }

  120.     /**
  121.      * set the xsl file of the directory xsl
  122.      *
  123.      * @param file
  124.      *            the xsl file of the directory xsl
  125.      */
  126.     public void setFile( File file )
  127.     {
  128.         _file = file;
  129.     }

  130.     /**
  131.      * get the extension of the output file generate by the xsl
  132.      *
  133.      * @return the extension of the out put file
  134.      */
  135.     public String getExtension( )
  136.     {
  137.         return _strExtension;
  138.     }

  139.     /**
  140.      * set the extension of the output file generate by the xsl
  141.      *
  142.      * @param extension
  143.      *            the extension of the out put file
  144.      */
  145.     public void setExtension( String extension )
  146.     {
  147.         _strExtension = extension;
  148.     }

  149.     /**
  150.      * Get the name of the plugin associated with this XSL
  151.      *
  152.      * @return The name of the plugin
  153.      */
  154.     public String getPlugin( )
  155.     {
  156.         return _strPlugin;
  157.     }

  158.     /**
  159.      * Set the name of the plugin associated with this XSL
  160.      *
  161.      * @param strPlugin
  162.      *            The name of the plugin
  163.      */
  164.     public void setPlugin( String strPlugin )
  165.     {
  166.         this._strPlugin = strPlugin;
  167.     }
  168. }