Package eu.clarin.sru.client.fcs
Class DataViewParserKWIC
- java.lang.Object
-
- eu.clarin.sru.client.fcs.DataViewParserKWIC
-
- All Implemented Interfaces:
DataViewParser
@Deprecated public class DataViewParserKWIC extends Object implements DataViewParser
Deprecated.Use only to talk to legacy clients. Endpoints should upgrade to recent CLARIN-FCS specification.An implementation of a Data View parser that parses legacy KWIC Data Views. The input will automatically be upgraded to a HITS Data View and an instance ofDataViewHitswill be returned.- See Also:
DataViewHits
-
-
Constructor Summary
Constructors Constructor Description DataViewParserKWIC(boolean fullLegacyCompatMode)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanacceptType(String type)Deprecated.Check, if parser accepts a certain DataView typeintgetPriority()Deprecated.Get the priority for this parserDataViewparse(XMLStreamReader reader, String type, String pid, String ref)Deprecated.Parse a DataView.
-
-
-
Method Detail
-
acceptType
public boolean acceptType(String type)
Deprecated.Description copied from interface:DataViewParserCheck, if parser accepts a certain DataView type- Specified by:
acceptTypein interfaceDataViewParser- Parameters:
type- the type to be checked- Returns:
trueif the parser supports this type,falseotherwise
-
getPriority
public int getPriority()
Deprecated.Description copied from interface:DataViewParserGet the priority for this parser- Specified by:
getPriorityin interfaceDataViewParser- Returns:
- the priority for this parser
-
parse
public DataView parse(XMLStreamReader reader, String type, String pid, String ref) throws XMLStreamException, SRUClientException
Deprecated.Description copied from interface:DataViewParserParse a DataView. Implementations of this methods are required to be thread-safe!- Specified by:
parsein interfaceDataViewParser- Parameters:
reader- theXMLStreamReaderto read fromtype- the type of the DataViewpid- the pid of this DataViewref- the reference of this DataView- Returns:
- the parsed
DataViewobject - Throws:
XMLStreamException- an error occurred while parsing the DataViewSRUClientException- any SRU exception, possibly wrapping another exception- See Also:
DataView
-
-