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.xsl;
35  
36  import fr.paris.lutece.portal.business.file.File;
37  
38  /**
39   *
40   * class DirectoryXsl
41   *
42   */
43  
44  /**
45   * @author vbroussard
46   *
47   */
48  
49  /**
50   * @author vbroussard
51   *
52   */
53  public class XslExport
54  {
55      public static final String RESOURCE_TYPE = "XSL_EXPORT";
56      private int _nIdXslExport;
57      private String _strTitle;
58      private String _strDescription;
59      private String _strExtension;
60      private File _file;
61      private String _strPlugin;
62  
63      /**
64       *
65       * @return the id of the directory xsl
66       */
67      public int getIdXslExport( )
68      {
69          return _nIdXslExport;
70      }
71  
72      /**
73       * set the id of the directory xsl
74       * 
75       * @param idExport
76       *            the id of the directory xsl
77       */
78      public void setIdXslExport( int idExport )
79      {
80          _nIdXslExport = idExport;
81      }
82  
83      /**
84       *
85       * @return the description of the directory xsl
86       */
87      public String getDescription( )
88      {
89          return _strDescription;
90      }
91  
92      /**
93       * set the description of the directory xsl
94       * 
95       * @param description
96       *            the description of the directory xsl
97       */
98      public void setDescription( String description )
99      {
100         _strDescription = description;
101     }
102 
103     /**
104      *
105      * @return the title of the directory xsl
106      */
107     public String getTitle( )
108     {
109         return _strTitle;
110     }
111 
112     /**
113      * set the title of the directory xsl
114      * 
115      * @param title
116      *            the title of the directory xsl
117      */
118     public void setTitle( String title )
119     {
120         _strTitle = title;
121     }
122 
123     /**
124      *
125      * @return the xsl file of the directory xsl
126      */
127     public File getFile( )
128     {
129         return _file;
130     }
131 
132     /**
133      * set the xsl file of the directory xsl
134      * 
135      * @param file
136      *            the xsl file of the directory xsl
137      */
138     public void setFile( File file )
139     {
140         _file = file;
141     }
142 
143     /**
144      * get the extension of the output file generate by the xsl
145      * 
146      * @return the extension of the out put file
147      */
148     public String getExtension( )
149     {
150         return _strExtension;
151     }
152 
153     /**
154      * set the extension of the output file generate by the xsl
155      * 
156      * @param extension
157      *            the extension of the out put file
158      */
159     public void setExtension( String extension )
160     {
161         _strExtension = extension;
162     }
163 
164     /**
165      * Get the name of the plugin associated with this XSL
166      * 
167      * @return The name of the plugin
168      */
169     public String getPlugin( )
170     {
171         return _strPlugin;
172     }
173 
174     /**
175      * Set the name of the plugin associated with this XSL
176      * 
177      * @param strPlugin
178      *            The name of the plugin
179      */
180     public void setPlugin( String strPlugin )
181     {
182         this._strPlugin = strPlugin;
183     }
184 }