Class CSVDataSetWrapper.CSVDataSetWrapperBuilder<C extends CSVDataSetWrapper,​B extends CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,​B>>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected B $fillValuesFrom​(C instance)  
      B addvariable​(Variable variable)
      Add variable to List of Variable Name.
      B addvariables​(java.util.List<Variable> variables)
      Add variable to List of Variable Name.
      abstract C build()
      build Wrapper.
      protected abstract B self()  
      java.lang.String toString()  
      B withAsResourceFile​(boolean asResourceFile)  
      B withDelimiter​(@NonNull java.lang.String delimiter)  
      B withFileEncoding​(java.lang.String fileEncoding)  
      B withFilename​(java.lang.String filename)  
      B withIgnoreFirstLine​(java.lang.Boolean ignoreFirstLine)
      Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
      B withIgnoreFirstLine​(java.lang.String ignoreFirstLine)
      Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
      B withIgnoreFirstLine​(Variable ignoreFirstLine)
      Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
      B withQuotedData​(java.lang.Boolean quotedData)
      Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter.
      B withQuotedData​(java.lang.String quotedData)
      Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter.
      B withQuotedData​(Variable quotedData)
      Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter.
      B withRecycle​(java.lang.Boolean recycle)
      Should the file be re-read from the beginning on reaching EOF? (default is true).
      B withRecycle​(java.lang.String recycle)
      Should the file be re-read from the beginning on reaching EOF? (default is true).
      B withRecycle​(Variable recycle)
      Should the file be re-read from the beginning on reaching EOF? (default is true).
      B withShareMode​(java.lang.String shareMode)
      All threads - (the default) the file is shared between all the threads.
      B withShareMode​(ShareMode shareMode)
      All threads - (the default) the file is shared between all the threads.
      B withShareMode​(Variable shareMode)
      All threads - (the default) the file is shared between all the threads.
      B withStopThread​(java.lang.Boolean stopThread)
      Should the thread be stopped on EOF, if Recycle is false? (default is false).
      B withStopThread​(java.lang.String stopThread)
      Should the thread be stopped on EOF, if Recycle is false? (default is false).
      B withStopThread​(Variable stopThread)
      Should the thread be stopped on EOF, if Recycle is false? (default is false).
      protected B withVariables​(java.util.List<Variable> variables)
      hide method , generated by Lombok.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CSVDataSetWrapperBuilder

        public CSVDataSetWrapperBuilder()
    • Method Detail

      • withIgnoreFirstLine

        public B withIgnoreFirstLine​(java.lang.Boolean ignoreFirstLine)
        Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
      • withIgnoreFirstLine

        public B withIgnoreFirstLine​(Variable ignoreFirstLine)
        Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
      • withIgnoreFirstLine

        public B withIgnoreFirstLine​(java.lang.String ignoreFirstLine)
        Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
      • withRecycle

        public B withRecycle​(java.lang.Boolean recycle)
        Should the file be re-read from the beginning on reaching EOF? (default is true).
      • withRecycle

        public B withRecycle​(Variable recycle)
        Should the file be re-read from the beginning on reaching EOF? (default is true).
      • withRecycle

        public B withRecycle​(java.lang.String recycle)
        Should the file be re-read from the beginning on reaching EOF? (default is true).
      • withStopThread

        public B withStopThread​(java.lang.Boolean stopThread)
        Should the thread be stopped on EOF, if Recycle is false? (default is false).
      • withStopThread

        public B withStopThread​(Variable stopThread)
        Should the thread be stopped on EOF, if Recycle is false? (default is false).
      • withStopThread

        public B withStopThread​(java.lang.String stopThread)
        Should the thread be stopped on EOF, if Recycle is false? (default is false).
      • withQuotedData

        public B withQuotedData​(java.lang.Boolean quotedData)
        Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter. .
      • withQuotedData

        public B withQuotedData​(Variable quotedData)
        Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter. .
      • withQuotedData

        public B withQuotedData​(java.lang.String quotedData)
        Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter. .
      • withShareMode

        public B withShareMode​(ShareMode shareMode)
        All threads - (the default) the file is shared between all the threads. Current thread group - each file is opened once for each thread group in which the element appears Current thread - each file is opened separately for each thread Identifier - all threads sharing the same identifier share the same file. So for example if you have 4 thread groups, you could use a common id for two or more of the groups to share the file between them. Or you could use the thread number to share the file between the same thread numbers in different thread groups.
      • withShareMode

        public B withShareMode​(Variable shareMode)
        All threads - (the default) the file is shared between all the threads. Current thread group - each file is opened once for each thread group in which the element appears Current thread - each file is opened separately for each thread Identifier - all threads sharing the same identifier share the same file. So for example if you have 4 thread groups, you could use a common id for two or more of the groups to share the file between them. Or you could use the thread number to share the file between the same thread numbers in different thread groups.
      • withShareMode

        public B withShareMode​(java.lang.String shareMode)
        All threads - (the default) the file is shared between all the threads. Current thread group - each file is opened once for each thread group in which the element appears Current thread - each file is opened separately for each thread Identifier - all threads sharing the same identifier share the same file. So for example if you have 4 thread groups, you could use a common id for two or more of the groups to share the file between them. Or you could use the thread number to share the file between the same thread numbers in different thread groups.
      • withVariables

        protected B withVariables​(java.util.List<Variable> variables)
        hide method , generated by Lombok.
      • addvariables

        public B addvariables​(java.util.List<Variable> variables)
        Add variable to List of Variable Name.
      • addvariable

        public B addvariable​(Variable variable)
        Add variable to List of Variable Name.
      • withFilename

        public B withFilename​(java.lang.String filename)
        Returns:
        this.
      • withAsResourceFile

        public B withAsResourceFile​(boolean asResourceFile)
        Returns:
        this.
      • withFileEncoding

        public B withFileEncoding​(java.lang.String fileEncoding)
        Returns:
        this.
      • withDelimiter

        public B withDelimiter​(@NonNull
                               @NonNull java.lang.String delimiter)
        Returns:
        this.