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