Class SPARQLResultsXSVMappingStrategy
java.lang.Object
org.eclipse.rdf4j.query.resultio.text.SPARQLResultsXSVMappingStrategy
- All Implemented Interfaces:
com.opencsv.bean.MappingStrategy<BindingSet>
- Direct Known Subclasses:
SPARQLResultsCSVMappingStrategy
,SPARQLResultsTSVMappingStrategy
public abstract class SPARQLResultsXSVMappingStrategy
extends Object
implements com.opencsv.bean.MappingStrategy<BindingSet>
This serves as a base class for mapping strategies for character separated inputs. Specifically, it is meant for
SPARQLResultsCSVMappingStrategy
and
SPARQLResultsTSVMappingStrategy
.- Author:
- Andrew Rucker Jones
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
generateHeader
(BindingSet bean) boolean
protected Value
parseNumberPatternMatch
(String valueString) This method parses a number as matched bynumberPattern
into aValue
.void
setErrorLocale
(Locale errorLocale) void
setType
(Class<? extends BindingSet> type) String[]
transmuteBean
(BindingSet bean) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.opencsv.bean.MappingStrategy
captureHeader, ignoreFields, populateNewBean
-
Field Details
-
bindingNames
-
valueFactory
-
numberPattern
-
-
Constructor Details
-
SPARQLResultsXSVMappingStrategy
-
-
Method Details
-
getBindingNames
-
generateHeader
- Specified by:
generateHeader
in interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
isAnnotationDriven
public boolean isAnnotationDriven()- Specified by:
isAnnotationDriven
in interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
parseNumberPatternMatch
This method parses a number as matched bynumberPattern
into aValue
.- Parameters:
valueString
- The string to be parsed into a number- Returns:
- The parsed value
-
setErrorLocale
- Specified by:
setErrorLocale
in interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
setType
- Specified by:
setType
in interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
transmuteBean
- Specified by:
transmuteBean
in interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-