Ignore:
Timestamp:
05/27/13 15:54:47 (11 years ago)
Author:
oschonef
Message:
  • add preliminary Zeerex record parser and Zeerex record data object (used in explain, still disabled)
  • make non-strict mode more forgiving
  • (preliminary) add version attribute to parse() method of record data parsers
File:
1 edited

Legend:

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

    r2870 r2936  
    107107    /**
    108108     * Register a record data parser.
    109      *
     109     * 
    110110     * @param parser
    111111     *            a parser instance
    112      * @throws SRUClientException
    113      *             if a parser handing the same record schema is already
    114      *             registered
    115112     * @throws NullPointerException
    116113     *             if any required argument is <code>null</code>
    117114     * @throws IllegalArgumentException
    118      *             if the supplied parser is invalid
    119      */
    120     public void registerRecordParser(SRURecordDataParser parser)
    121             throws SRUClientException {
     115     *             if the supplied parser is invalid or a parser handing the
     116     *             same record schema is already registered
     117     */
     118    public void registerRecordParser(SRURecordDataParser parser) {
    122119        if (parser == null) {
    123120            throw new NullPointerException("parser == null");
     
    133130
    134131        if (parsers.putIfAbsent(recordSchema, parser) != null) {
    135             throw new SRUClientException(
     132            throw new IllegalArgumentException(
    136133                    "record data parser already registered: " + recordSchema);
    137134
Note: See TracChangeset for help on using the changeset viewer.