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 ofDataViewHits
will 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 boolean
acceptType(String type)
Deprecated.Check, if parser accepts a certain DataView typeint
getPriority()
Deprecated.Get the priority for this parserDataView
parse(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:DataViewParser
Check, if parser accepts a certain DataView type- Specified by:
acceptType
in interfaceDataViewParser
- Parameters:
type
- the type to be checked- Returns:
true
if the parser supports this type,false
otherwise
-
getPriority
public int getPriority()
Deprecated.Description copied from interface:DataViewParser
Get the priority for this parser- Specified by:
getPriority
in 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:DataViewParser
Parse a DataView. Implementations of this methods are required to be thread-safe!- Specified by:
parse
in interfaceDataViewParser
- Parameters:
reader
- theXMLStreamReader
to read fromtype
- the type of the DataViewpid
- the pid of this DataViewref
- the reference of this DataView- Returns:
- the parsed
DataView
object - Throws:
XMLStreamException
- an error occurred while parsing the DataViewSRUClientException
- any SRU exception, possibly wrapping another exception- See Also:
DataView
-
-