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 /**
37 * This class reprsents business objects Mode
38 */
39 public class Mode
40 {
41 private static final String EMPTY_STRING = "";
42 private int _nId;
43 private String _strDescription;
44 private String _strPath;
45 private String _strOutputXslPropertyMethod;
46 private String _strOutputXslPropertyVersion;
47 private String _strOutputXslPropertyMediaType;
48 private String _strOutputXslPropertyIndent;
49 private String _strOutputXslPropertyOmitXmlDeclaration;
50 private String _strOutputXslPropertyEncoding;
51 private String _strOutputXslPropertyStandalone;
52
53 /**
54 * Sets the mode identifier
55 *
56 * @param nId
57 * the mode identifier
58 */
59 public void setId( int nId )
60 {
61 _nId = nId;
62 }
63
64 /**
65 * Returns the mode identifier
66 *
67 * @return the mode identifier
68 */
69 public int getId( )
70 {
71 return _nId;
72 }
73
74 /**
75 * Sets the name of the mode
76 *
77 * @param strDescription
78 * the mode name
79 */
80 public void setDescription( String strDescription )
81 {
82 _strDescription = strDescription;
83 }
84
85 /**
86 * Returns the name of the mode
87 *
88 * @return mode name
89 */
90 public String getDescription( )
91 {
92 return _strDescription;
93 }
94
95 /**
96 * Sets the path of the stylesheet according to their mode
97 *
98 * @param strPath
99 * the path
100 */
101 public void setPath( String strPath )
102 {
103 _strPath = strPath;
104 }
105
106 /**
107 * Returns the path of the stylesheet according to their mode
108 *
109 * @return path
110 */
111 public String getPath( )
112 {
113 return _strPath;
114 }
115
116 /**
117 * @return Returns the _strOutputXslPropertyEncoding.
118 */
119 public String getOutputXslPropertyEncoding( )
120 {
121 return _strOutputXslPropertyEncoding;
122 }
123
124 /**
125 * @param strOutPutXslPropertyEncoding
126 * The _strOutputXslPropertyEncoding to set.
127 */
128 public void setOutputXslPropertyEncoding( String strOutPutXslPropertyEncoding )
129 {
130 _strOutputXslPropertyEncoding = ( strOutPutXslPropertyEncoding == null ) ? EMPTY_STRING : strOutPutXslPropertyEncoding;
131 }
132
133 /**
134 * @return Returns the _strOutputXslPropertyIndent.
135 */
136 public String getOutputXslPropertyIndent( )
137 {
138 return _strOutputXslPropertyIndent;
139 }
140
141 /**
142 * @param strOutPutXslPropertyIndent
143 * The _strOutputXslPropertyIndent to set.
144 */
145 public void setOutputXslPropertyIndent( String strOutPutXslPropertyIndent )
146 {
147 _strOutputXslPropertyIndent = ( strOutPutXslPropertyIndent == null ) ? EMPTY_STRING : strOutPutXslPropertyIndent;
148 }
149
150 /**
151 * @return Returns the _strOutputXslPropertyMediaType.
152 */
153 public String getOutputXslPropertyMediaType( )
154 {
155 return _strOutputXslPropertyMediaType;
156 }
157
158 /**
159 * @param strOutPutXslPropertyMediaType
160 * The _strOutputXslPropertyMediaType to set.
161 */
162 public void setOutputXslPropertyMediaType( String strOutPutXslPropertyMediaType )
163 {
164 _strOutputXslPropertyMediaType = ( strOutPutXslPropertyMediaType == null ) ? EMPTY_STRING : strOutPutXslPropertyMediaType;
165 }
166
167 /**
168 * @return Returns the _strOutputXslPropertyMethod.
169 */
170 public String getOutputXslPropertyMethod( )
171 {
172 return _strOutputXslPropertyMethod;
173 }
174
175 /**
176 * @param strOutPutXslPropertyMethod
177 * The _strOutputXslPropertyMethod to set.
178 */
179 public void setOutputXslPropertyMethod( String strOutPutXslPropertyMethod )
180 {
181 _strOutputXslPropertyMethod = ( strOutPutXslPropertyMethod == null ) ? EMPTY_STRING : strOutPutXslPropertyMethod;
182 }
183
184 /**
185 * @return Returns the _strOutputXslPropertyOmitXmlDeclaration.
186 */
187 public String getOutputXslPropertyOmitXmlDeclaration( )
188 {
189 return _strOutputXslPropertyOmitXmlDeclaration;
190 }
191
192 /**
193 * @param strOutPutXslPropertyOmitXmlDeclaration
194 * The _strOutputXslPropertyOmitXmlDeclaration to set.
195 */
196 public void setOutputXslPropertyOmitXmlDeclaration( String strOutPutXslPropertyOmitXmlDeclaration )
197 {
198 _strOutputXslPropertyOmitXmlDeclaration = ( strOutPutXslPropertyOmitXmlDeclaration == null ) ? EMPTY_STRING : strOutPutXslPropertyOmitXmlDeclaration;
199 }
200
201 /**
202 * @return Returns the _strOutputXslPropertyStandalone.
203 */
204 public String getOutputXslPropertyStandalone( )
205 {
206 return _strOutputXslPropertyStandalone;
207 }
208
209 /**
210 * @param strOutPutXslPropertyStandalone
211 * The _strOutputXslPropertyStandalone to set.
212 */
213 public void setOutputXslPropertyStandalone( String strOutPutXslPropertyStandalone )
214 {
215 _strOutputXslPropertyStandalone = ( strOutPutXslPropertyStandalone == null ) ? EMPTY_STRING : strOutPutXslPropertyStandalone;
216 }
217
218 /**
219 * @return Returns the _strOutputXslPropertyVersion.
220 */
221 public String getOutputXslPropertyVersion( )
222 {
223 return _strOutputXslPropertyVersion;
224 }
225
226 /**
227 * @param strOutPutXslPropertyVersion
228 * The _strOutputXslPropertyVersion to set.
229 */
230 public void setOutputXslPropertyVersion( String strOutPutXslPropertyVersion )
231 {
232 _strOutputXslPropertyVersion = ( strOutPutXslPropertyVersion == null ) ? EMPTY_STRING : strOutPutXslPropertyVersion;
233 }
234 }