Package eu.clarin.sru.client.fcs
Class ClarinFCSRecordDataParser
- java.lang.Object
-
- eu.clarin.sru.client.fcs.ClarinFCSRecordDataParser
-
- All Implemented Interfaces:
SRURecordDataParser
public class ClarinFCSRecordDataParser extends Object
A record data parse to parse records conforming to CLARIN-FCS specification.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
protected List<DataViewParser>
parsers
-
Constructor Summary
Constructors Constructor Description ClarinFCSRecordDataParser(List<DataViewParser> parsers)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRecordSchema()
SRURecordData
parse(XMLStreamReader reader)
protected SRURecordData
parse(XMLStreamReader reader, String ns, boolean fullLegacyCompatMode)
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
parsers
protected final List<DataViewParser> parsers
-
-
Constructor Detail
-
ClarinFCSRecordDataParser
public ClarinFCSRecordDataParser(List<DataViewParser> parsers)
Constructor.- Parameters:
parsers
- the list of data view parsers to be used by this record data parser. This list should contain oneDataViewParserGenericDOM
orDataViewParserGenericString
instance.- Throws:
NullPointerException
- if parsers isnull
IllegalArgumentException
- if parsers is empty or contains duplicate entries
-
-
Method Detail
-
getRecordSchema
public String getRecordSchema()
-
parse
public SRURecordData parse(XMLStreamReader reader) throws XMLStreamException, SRUClientException
- Throws:
XMLStreamException
SRUClientException
-
parse
protected SRURecordData parse(XMLStreamReader reader, String ns, boolean fullLegacyCompatMode) throws XMLStreamException, SRUClientException
- Throws:
XMLStreamException
SRUClientException
-
-