~ubuntu-branches/ubuntu/vivid/doxia/vivid-proposed

« back to all changes in this revision

Viewing changes to doxia-book/src/main/java/org/apache/maven/doxia/book/context/BookContext.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-10-08 14:20:22 UTC
  • mfrom: (2.3.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091008142022-f6ccxganfr2tbaig
Tags: 1.1-3build1
Upload to karmic, avoiding new version from unstable. LP: #443292.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import org.apache.maven.doxia.book.model.BookModel;
23
23
 
24
24
import java.io.File;
 
25
import java.util.Locale;
25
26
import java.util.Map;
26
27
import java.util.HashMap;
27
28
 
29
30
 * Context to render a book.
30
31
 *
31
32
 * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
32
 
 * @version $Id: BookContext.java 572956 2007-09-05 14:22:50Z ltheussl $
 
33
 * @version $Id: BookContext.java 746976 2009-02-23 12:15:38Z vsiveton $
33
34
 */
34
35
public class BookContext
35
36
{
45
46
    /** The BookIndex of this context. */
46
47
    private BookIndex index;
47
48
 
 
49
    /** The Locale used to generate the navigation. */
 
50
    private Locale locale;
 
51
 
 
52
    /** The input encoding used to read Doxia file. */
 
53
    private String inputEncoding;
 
54
 
 
55
    /** The output encoding used to write the renderer files. */
 
56
    private String outputEncoding;
 
57
 
48
58
    // ----------------------------------------------------------------------
49
59
    //
50
60
    // ----------------------------------------------------------------------
179
189
    {
180
190
        this.index = index;
181
191
    }
 
192
 
 
193
    /**
 
194
     * <p>Getter for the field <code>locale</code>.</p>
 
195
     *
 
196
     * @return the locale
 
197
     * @since 1.1
 
198
     */
 
199
    public Locale getLocale()
 
200
    {
 
201
        return locale;
 
202
    }
 
203
 
 
204
    /**
 
205
     * <p>Setter for the field <code>locale</code>.</p>
 
206
     *
 
207
     * @param locale the locale to set
 
208
     * @since 1.1
 
209
     */
 
210
    public void setLocale( Locale locale )
 
211
    {
 
212
        this.locale = locale;
 
213
    }
 
214
 
 
215
    /**
 
216
     * <p>Getter for the field <code>inputEncoding</code>.</p>
 
217
     *
 
218
     * @return the inputEncoding
 
219
     * @since 1.1
 
220
     */
 
221
    public String getInputEncoding()
 
222
    {
 
223
        return inputEncoding;
 
224
    }
 
225
 
 
226
    /**
 
227
     * <p>Setter for the field <code>inputEncoding</code>.</p>
 
228
     *
 
229
     * @param inputEncoding the inputEncoding to set
 
230
     * @since 1.1
 
231
     */
 
232
    public void setInputEncoding( String inputEncoding )
 
233
    {
 
234
        this.inputEncoding = inputEncoding;
 
235
    }
 
236
 
 
237
    /**
 
238
     * <p>Getter for the field <code>outputEncoding</code>.</p>
 
239
     *
 
240
     * @return the outputEncoding
 
241
     * @since 1.1
 
242
     */
 
243
    public String getOutputEncoding()
 
244
    {
 
245
        return outputEncoding;
 
246
    }
 
247
 
 
248
    /**
 
249
     * <p>Setter for the field <code>outputEncoding</code>.</p>
 
250
     *
 
251
     * @param outputEncoding the outputEncoding to set
 
252
     * @since 1.1
 
253
     */
 
254
    public void setOutputEncoding( String outputEncoding )
 
255
    {
 
256
        this.outputEncoding = outputEncoding;
 
257
    }
182
258
}