source: SRUClient/tags/SRUClient-0.9.4/src/main/java/eu/clarin/sru/client/fcs/ClarinFCSRecordData.java @ 5805

Last change on this file since 5805 was 5805, checked in by Oliver Schonefeld, 10 years ago
  • tag version 0.9.4
File size: 1.9 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
19import java.util.List;
20
21import eu.clarin.sru.client.SRURecordData;
22
23
24/**
25 * A record data implementation for CLARIN-FCS.
26 */
27public final class ClarinFCSRecordData implements
28        SRURecordData {
29    /**
30     * The record schema for CLARIN-FCS records.
31     */
32    public static final String RECORD_SCHEMA =
33            "http://clarin.eu/fcs/resource";
34    /**
35     * The legacy record schema for CLARIN-FCS records.
36     *
37     * @deprecated Only use to talk to legacy clients
38     */
39    @Deprecated
40    public static final String LEGACY_RECORD_SCHEMA =
41            "http://clarin.eu/fcs/1.0";
42    private final Resource resource;
43
44
45    ClarinFCSRecordData(String pid, String ref,
46            List<DataView> dataviews,
47            List<Resource.ResourceFragment> resourceFragments) {
48        this.resource = new Resource(pid, ref, dataviews, resourceFragments);
49    }
50
51
52    @Override
53    public boolean isTransient() {
54        return false;
55    }
56
57
58    @Override
59    public String getRecordSchema() {
60        return RECORD_SCHEMA;
61    }
62
63    /**
64     * Get the CLARIN-FCS record resource.
65     *
66     * @return a {@link Resource} object
67     */
68    public Resource getResource() {
69        return resource;
70    }
71
72} // class ClarinFederatedContentSearchRecordData
Note: See TracBrowser for help on using the repository browser.