source: SRUClient/tags/SRUClient-0.9.5/src/main/java/eu/clarin/sru/client/fcs/DataViewGenericString.java @ 6079

Last change on this file since 6079 was 6079, checked in by Oliver Schonefeld, 9 years ago
  • tag version 0.9.5
File size: 1.2 KB
Line 
1/**
2 * This software is copyright (c) 2012-2014 by
3 *  - Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
4 * This is free software. You can redistribute it
5 * and/or modify it under the terms described in
6 * the GNU General Public License v3 of which you
7 * should have received a copy. Otherwise you can download
8 * it from
9 *
10 *   http://www.gnu.org/licenses/gpl-3.0.txt
11 *
12 * @copyright Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
13 *
14 * @license http://www.gnu.org/licenses/gpl-3.0.txt
15 *  GNU General Public License v3
16 */
17package eu.clarin.sru.client.fcs;
18
19/**
20 * A generic Data View implementation that stores the content of a Data View as
21 * a String.
22 */
23public class DataViewGenericString extends DataView {
24    private final String content;
25
26
27    protected DataViewGenericString(String type, String pid, String ref,
28            String content) {
29        super(type, pid, ref);
30        this.content = content;
31    }
32
33
34    /**
35     * Get DataView content.
36     *
37     * @return the DataView content as String.
38     */
39    public String getContent() {
40        return content;
41    }
42
43} // class DataViewGenericString
Note: See TracBrowser for help on using the repository browser.