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 Details Link icon

    • bindingNames Link icon

      protected List<String> bindingNames
    • valueFactory Link icon

      protected final ValueFactory valueFactory
    • numberPattern Link icon

      protected static final Pattern numberPattern
  • Constructor Details Link icon

    • SPARQLResultsXSVMappingStrategy Link icon

      public SPARQLResultsXSVMappingStrategy(ValueFactory valueFactory)
  • Method Details Link icon

    • getBindingNames Link icon

      public List<String> getBindingNames()
    • generateHeader Link icon

      public String[] generateHeader(BindingSet bean)
      Specified by:
      generateHeader in interface com.opencsv.bean.MappingStrategy<BindingSet>
    • isAnnotationDriven Link icon

      public boolean isAnnotationDriven()
      Specified by:
      isAnnotationDriven in interface com.opencsv.bean.MappingStrategy<BindingSet>
    • parseNumberPatternMatch Link icon

      protected Value parseNumberPatternMatch(String valueString)
      This method parses a number as matched by numberPattern into a Value.
      Parameters:
      valueString - The string to be parsed into a number
      Returns:
      The parsed value
    • setErrorLocale Link icon

      public void setErrorLocale(Locale errorLocale)
      Specified by:
      setErrorLocale in interface com.opencsv.bean.MappingStrategy<BindingSet>
    • setType Link icon

      public void setType(Class<? extends BindingSet> type)
      Specified by:
      setType in interface com.opencsv.bean.MappingStrategy<BindingSet>
    • transmuteBean Link icon

      public String[] transmuteBean(BindingSet bean)
      Specified by:
      transmuteBean in interface com.opencsv.bean.MappingStrategy<BindingSet>