source: OAIProvider/trunk/src/main/java/eu/clarin/oai/provider/MetadataFormat.java @ 1911

Last change on this file since 1911 was 1911, checked in by oschonef, 12 years ago
  • first round of major refactoring to simply the provider
    • result sets converted to iterator/cursor-mode (better streaming support)
    • delegate serializing of records to Result and ResultList?
    • prepare getting rid of over-engineered and complicated MetadataFormats? classes (not done, yet)

HEADS UP: breaks existing API

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1package eu.clarin.oai.provider;
2
3
4
5/**
6 * Interface for metadata format implementations. The OAI provider uses this
7 * interface to talk to the metadata format converter.
8 */
9public interface MetadataFormat {
10
11    /**
12     * Get the prefix for this metadata format. Used by the
13     * <em>ListMetadataFormats</em>, <em>GetRecord</em> and <em>ListRecords</em>
14     * verbs.
15     *
16     * @return the prefix for metadata format
17     */
18    public String getPrefix();
19
20    /**
21     * Get the namespace URI for this metadata format. Used by the
22     * <em>ListMetadataFormats</em> <em>GetRecord</em> and <em>ListRecords</em>
23     * verbs. Even though the return type of this method is String, it should
24     * return a well-formed URI.
25     *
26     * @return the namespace URI for this metadata format
27     * @see java.net.URI
28     */
29    public String getNamespaceURI();
30
31    /**
32     * Get the schema location URI for this metadata format. Used by the
33     * <em>ListMetadataFormats</em> <em>GetRecord</em> and <em>ListRecords</em>
34     * verbs. Even though the return type of this method is String, it should
35     * return a well-formed URI.
36     *
37     * @return the schema location URI for this metadata format
38     * @see java.net.URI
39     */
40    public String getSchemaLocation();
41
42} // interface MetadataFormat
Note: See TracBrowser for help on using the repository browser.