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 forSPARQLResultsCSVMappingStrategyandSPARQLResultsTSVMappingStrategy.- Author:
- Andrew Rucker Jones
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>bindingNamesprotected static PatternnumberPatternprotected ValueFactoryvalueFactory
-
Constructor Summary
Constructors Constructor Description SPARQLResultsXSVMappingStrategy(ValueFactory valueFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BindingSetcreateBean()Deprecated.PropertyDescriptorfindDescriptor(int col)Deprecated.com.opencsv.bean.BeanField<BindingSet>findField(int col)Deprecated.intfindMaxFieldIndex()Deprecated.String[]generateHeader(BindingSet bean)List<String>getBindingNames()IntegergetColumnIndex(String name)Deprecated.booleanisAnnotationDriven()protected ValueparseNumberPatternMatch(String valueString)This method parses a number as matched bynumberPatterninto aValue.BindingSetpopulateNewBeanWithIntrospection(String[] line)Deprecated.voidsetErrorLocale(Locale errorLocale)voidsetType(Class<? extends BindingSet> type)String[]transmuteBean(BindingSet bean)voidverifyLineLength(int numberOfFields)Deprecated.
-
-
-
Field Detail
-
valueFactory
protected final ValueFactory valueFactory
-
numberPattern
protected static final Pattern numberPattern
-
-
Constructor Detail
-
SPARQLResultsXSVMappingStrategy
public SPARQLResultsXSVMappingStrategy(ValueFactory valueFactory)
-
-
Method Detail
-
findDescriptor
@Deprecated public PropertyDescriptor findDescriptor(int col)
Deprecated.- Specified by:
findDescriptorin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
findField
@Deprecated public com.opencsv.bean.BeanField<BindingSet> findField(int col)
Deprecated.- Specified by:
findFieldin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
findMaxFieldIndex
@Deprecated public int findMaxFieldIndex()
Deprecated.- Specified by:
findMaxFieldIndexin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
createBean
@Deprecated public BindingSet createBean()
Deprecated.- Specified by:
createBeanin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
generateHeader
public String[] generateHeader(BindingSet bean)
- Specified by:
generateHeaderin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
getColumnIndex
@Deprecated public Integer getColumnIndex(String name)
Deprecated.- Specified by:
getColumnIndexin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
isAnnotationDriven
public boolean isAnnotationDriven()
- Specified by:
isAnnotationDrivenin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
parseNumberPatternMatch
protected Value parseNumberPatternMatch(String valueString)
This method parses a number as matched bynumberPatterninto aValue.- Parameters:
valueString- The string to be parsed into a number- Returns:
- The parsed value
-
populateNewBeanWithIntrospection
@Deprecated public BindingSet populateNewBeanWithIntrospection(String[] line)
Deprecated.- Specified by:
populateNewBeanWithIntrospectionin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
verifyLineLength
@Deprecated public void verifyLineLength(int numberOfFields)
Deprecated.- Specified by:
verifyLineLengthin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
setErrorLocale
public void setErrorLocale(Locale errorLocale)
- Specified by:
setErrorLocalein interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
setType
public void setType(Class<? extends BindingSet> type)
- Specified by:
setTypein interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
transmuteBean
public String[] transmuteBean(BindingSet bean)
- Specified by:
transmuteBeanin interfacecom.opencsv.bean.MappingStrategy<BindingSet>
-
-