Class ExcelFixture2

  • All Implemented Interfaces:
    org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScriptWithExecutionStrategy

    @Named("causeway.ext.excel.ExcelFixture2")
    public class ExcelFixture2
    extends org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
    implements org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScriptWithExecutionStrategy
    Since:
    2.0 {@index}
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript

        org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String LOGICAL_TYPE_NAME  
      • Fields inherited from class org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript

        NOOP, PATH_SEPARATOR, repositoryService, serviceInjector, serviceRegistry, transactionService, txMan, userService, wrapperFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      ExcelFixture2()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object o)  
      protected void execute​(org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext executionContext)  
      org.apache.causeway.applib.value.Blob getBlob()
      Input, either this or the excelResource is mandatory ...
      URL getExcelResource()
      Input, either this or the blob is mandatory ...
      String getExcelResourceName()
      Input, optional: defines the name of the resource.
      List<List<?>> getLists()
      Output...
      org.apache.causeway.extensions.excel.applib.WorksheetSpec.Matcher getMatcher()
      Input, mandatory ...
      org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScripts.MultipleExecutionStrategy getMultipleExecutionStrategy()  
      org.apache.causeway.extensions.excel.applib.WorksheetSpec.Sequencer getSequencer()
      Input, optional ...
      int hashCode()  
      protected <T> org.apache.causeway.extensions.excel.applib.WorksheetSpec.RowFactory<T> rowFactoryFor​(Class<T> rowClass, org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext ec)  
      void setBlob​(org.apache.causeway.applib.value.Blob blob)
      Input, either this or the excelResource is mandatory ...
      void setExcelResource​(URL excelResource)
      Input, either this or the blob is mandatory ...
      void setExcelResourceName​(String excelResourceName)
      Input, optional: defines the name of the resource.
      void setMatcher​(org.apache.causeway.extensions.excel.applib.WorksheetSpec.Matcher matcher)
      Input, mandatory ...
      void setSequencer​(org.apache.causeway.extensions.excel.applib.WorksheetSpec.Sequencer sequencer)
      Input, optional ...
      • Methods inherited from class org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript

        checkParam, coalesce, defaultParam, friendlyNameElseDerived, getFriendlyName, getLocalName, getParentPath, getQualifiedName, getServiceInjector, localNameElseDerived, m, mixin, optionalParam, run, setFriendlyName, setLocalName, setParentPath, transactionTemplate, unwrap, validateRun, w, wm, wrap, wrap, wrapMixin
    • Method Detail

      • rowFactoryFor

        protected <T> org.apache.causeway.extensions.excel.applib.WorksheetSpec.RowFactory<T> rowFactoryFor​(Class<T> rowClass,
                                                                                                            org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext ec)
      • execute

        protected void execute​(org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext executionContext)
        Specified by:
        execute in class org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
      • getMultipleExecutionStrategy

        public org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScripts.MultipleExecutionStrategy getMultipleExecutionStrategy()
        Specified by:
        getMultipleExecutionStrategy in interface org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScriptWithExecutionStrategy
      • setExcelResourceName

        public void setExcelResourceName​(String excelResourceName)
        Input, optional: defines the name of the resource.
      • getExcelResource

        public URL getExcelResource()
        Input, either this or the blob is mandatory ... the Excel spreadsheet to read.
      • setExcelResource

        public void setExcelResource​(URL excelResource)
        Input, either this or the blob is mandatory ... the Excel spreadsheet to read.
      • getBlob

        public org.apache.causeway.applib.value.Blob getBlob()
        Input, either this or the excelResource is mandatory ... the Excel spreadsheet to read.
      • setBlob

        public void setBlob​(org.apache.causeway.applib.value.Blob blob)
        Input, either this or the excelResource is mandatory ... the Excel spreadsheet to read.
      • getMatcher

        public org.apache.causeway.extensions.excel.applib.WorksheetSpec.Matcher getMatcher()
        Input, mandatory ... how to process each sheet of the workbook.
      • setMatcher

        public void setMatcher​(org.apache.causeway.extensions.excel.applib.WorksheetSpec.Matcher matcher)
        Input, mandatory ... how to process each sheet of the workbook.
      • getSequencer

        public org.apache.causeway.extensions.excel.applib.WorksheetSpec.Sequencer getSequencer()
        Input, optional ... which sequence to process the matched sheets
      • setSequencer

        public void setSequencer​(org.apache.causeway.extensions.excel.applib.WorksheetSpec.Sequencer sequencer)
        Input, optional ... which sequence to process the matched sheets
      • getLists

        public List<List<?>> getLists()
        Output... a list of list of objects (each representing a row of a sheet)