public class OMEROImportFixture
extends java.lang.Object
OMEROMetadataStoreClient client = new OMEROMetadataStoreClient(sf); OMEROImportFixture fixture = new OMEROImportFixture(client); fixture.setUp(); fixture.setFile(ResourceUtils.getFile("classpath:tinyTest.d3d.dv")); fixture.setName(name); fixture.doImport(); List<Pixels> p = fixture.getPixels(); fixture.tearDown(); i.setName(name); i = userSave(i);This class is not thread safe.
OMEROMetadataStoreClient
修飾子とタイプ | フィールドと説明 |
---|---|
protected OMEROMetadataStoreClient |
store |
コンストラクタと説明 |
---|
OMEROImportFixture(OMEROMetadataStoreClient store,
OMEROWrapper reader) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
doImport()
runs import by looping through all files and then calling:
ImportLibrary#open(String)
ImportLibrary#calculateImageCount(String)
ImportLibrary#importMetadata()
ImportLibrary#importData(long, String, ome.formats.testclient.ImportLibrary.Step)
|
java.util.List<omero.model.Pixels> |
fullImport(java.io.File f,
java.lang.String name)
Provides one complete import cycle.
|
java.util.List<omero.model.Pixels> |
getPixels()
Accessor for the created pixels.
|
void |
setFile(java.io.File file) |
void |
setName(java.lang.String name) |
void |
setUp()
checks for the necessary fields and initializes the
ImportLibrary |
void |
tearDown()
sets
ImportLibrary , OMEROMetadataStore , and file array to
null. |
protected OMEROMetadataStoreClient store
public OMEROImportFixture(OMEROMetadataStoreClient store, OMEROWrapper reader)
public void setUp() throws java.lang.Exception
ImportLibrary
java.lang.Exception
public void tearDown()
ImportLibrary
, OMEROMetadataStore
, and file array to
null. Also attempts to call FormatReader.close()
.public java.util.List<omero.model.Pixels> fullImport(java.io.File f, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void doImport() throws java.lang.Exception
ImportLibrary#open(String)
ImportLibrary#calculateImageCount(String)
ImportLibrary#importMetadata()
ImportLibrary#importData(long, String, ome.formats.testclient.ImportLibrary.Step)
step
- an action to take per plane. not null.java.lang.Exception
public void setFile(java.io.File file)
public void setName(java.lang.String name)
public java.util.List<omero.model.Pixels> getPixels() throws java.lang.Exception
doImport()
java.lang.Exception