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