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 SummaryConstructors Constructor Description DataViewParserKWIC(boolean fullLegacyCompatMode)Deprecated.
 - 
Method SummaryAll 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- 
acceptTypepublic boolean acceptType(String type) Deprecated.Description copied from interface:DataViewParserCheck, if parser accepts a certain DataView type- Specified by:
- acceptTypein interface- DataViewParser
- Parameters:
- type- the type to be checked
- Returns:
- trueif the parser supports this type,- falseotherwise
 
 - 
getPrioritypublic int getPriority() Deprecated.Description copied from interface:DataViewParserGet the priority for this parser- Specified by:
- getPriorityin interface- DataViewParser
- Returns:
- the priority for this parser
 
 - 
parsepublic 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 interface- DataViewParser
- Parameters:
- reader- the- XMLStreamReaderto read from
- type- the type of the DataView
- pid- the pid of this DataView
- ref- the reference of this DataView
- Returns:
- the parsed DataViewobject
- Throws:
- XMLStreamException- an error occurred while parsing the DataView
- SRUClientException- any SRU exception, possibly wrapping another exception
- See Also:
- DataView
 
 
- 
 
-