Ignore:
Timestamp:
08/14/12 17:22:03 (12 years ago)
Author:
oschonef
Message:
  • add JavaDocs? to public API
  • fix wrong constructor visibility with *Request classes
  • do a better job in hiding some non-public API
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRURecordDataParser.java

    r1975 r2088  
     1/**
     2 * This software is copyright (c) 2011 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 */
    117package eu.clarin.sru.client;
    218
     
    420import javax.xml.stream.XMLStreamReader;
    521
     22
     23/**
     24 * A parser to parse record data and create appropriate Java objects.
     25 *
     26 */
    627public interface SRURecordDataParser {
    728
     29    /**
     30     * The record schema this parser is able to process.
     31     *
     32     * @return the record schema this parser is able to process
     33     */
    834    public String getRecordSchema();
    9    
     35
     36
     37    /**
     38     * Parse a record data into a Java object.
     39     *
     40     * @param reader
     41     *            a {@link XMLStreamReader} to parse the record data
     42     * @return the parsed record
     43     * @throws XMLStreamException
     44     *             an error occurred while parsing the response
     45     * @throws SRUClientException
     46     *             any SRU exception, possibly wrapping another exception
     47     * @see SRURecordData
     48     */
    1049    public SRURecordData parse(XMLStreamReader reader)
    1150            throws XMLStreamException, SRUClientException;
Note: See TracChangeset for help on using the changeset viewer.