Class ExcelFixture2
- java.lang.Object
-
- org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
-
- org.apache.causeway.extensions.excel.testing.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}
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOGICAL_TYPE_NAME
-
Constructor Summary
Constructors Constructor Description ExcelFixture2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)protected voidexecute(org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext executionContext)org.apache.causeway.applib.value.BlobgetBlob()Input, either this or the excelResource is mandatory ...URLgetExcelResource()Input, either this or the blob is mandatory ...StringgetExcelResourceName()Input, optional: defines the name of the resource.List<List<?>>getLists()Output...org.apache.causeway.extensions.excel.applib.WorksheetSpec.MatchergetMatcher()Input, mandatory ...org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScripts.MultipleExecutionStrategygetMultipleExecutionStrategy()org.apache.causeway.extensions.excel.applib.WorksheetSpec.SequencergetSequencer()Input, optional ...inthashCode()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)voidsetBlob(org.apache.causeway.applib.value.Blob blob)Input, either this or the excelResource is mandatory ...voidsetExcelResource(URL excelResource)Input, either this or the blob is mandatory ...voidsetExcelResourceName(String excelResourceName)Input, optional: defines the name of the resource.voidsetMatcher(org.apache.causeway.extensions.excel.applib.WorksheetSpec.Matcher matcher)Input, mandatory ...voidsetSequencer(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
-
-
-
-
Field Detail
-
LOGICAL_TYPE_NAME
public static final String LOGICAL_TYPE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExcelFixture2
public ExcelFixture2()
-
-
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:
executein classorg.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
-
getMultipleExecutionStrategy
public org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScripts.MultipleExecutionStrategy getMultipleExecutionStrategy()
- Specified by:
getMultipleExecutionStrategyin interfaceorg.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScriptWithExecutionStrategy
-
getExcelResourceName
public String getExcelResourceName()
Input, optional: defines the name of the resource.
-
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
-
-