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.Loggerloggerprotected 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 StringgetRecordSchema()SRURecordDataparse(XMLStreamReader reader)protected SRURecordDataparse(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 oneDataViewParserGenericDOMorDataViewParserGenericStringinstance.- Throws:
NullPointerException- if parsers isnullIllegalArgumentException- if parsers is empty or contains duplicate entries
-
-
Method Detail
-
getRecordSchema
public String getRecordSchema()
-
parse
public SRURecordData parse(XMLStreamReader reader) throws XMLStreamException, SRUClientException
- Throws:
XMLStreamExceptionSRUClientException
-
parse
protected SRURecordData parse(XMLStreamReader reader, String ns, boolean fullLegacyCompatMode) throws XMLStreamException, SRUClientException
- Throws:
XMLStreamExceptionSRUClientException
-
-