source: SRUClient/trunk/src/main/java/eu/clarin/sru/client/fcs/DataViewGenericDOM.java @ 2467

Last change on this file since 2467 was 2467, checked in by oschonef, 11 years ago
  • (re-factor) rename package from "eu.clarin.sru.fcs" to "eu.clarin.sru.client.fcs"

HEADS UP: This breaks existing code! Please update your sources accordingly.

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/**
2 * This software is copyright (c) 2012-2013 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
19import org.w3c.dom.Document;
20
21
22/**
23 * A generic DataView implementation that stores the content as a DOM document.
24 */
25public class DataViewGenericDOM extends DataView {
26    private final Document document;
27
28
29    protected DataViewGenericDOM(String type, String pid, String ref,
30            Document document) {
31        super(type, pid, ref);
32        this.document = document;
33    }
34
35
36    /**
37     * Get the DataView content.
38     *
39     * @return the DataView content as DOM document.
40     */
41    public Document getDocument() {
42        return document;
43    }
44
45} // class GenericDataView
Note: See TracBrowser for help on using the repository browser.