public class OriginalMetadataRequestI extends omero.cmd.OriginalMetadataRequest implements IRequest
コンストラクタと説明 |
---|
OriginalMetadataRequestI(ome.io.nio.PixelsService pixelsService) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
buildResponse(int step,
java.lang.Object object)
Post-transaction chance to map from the return value of
IRequest.step(int) to a omero.cmd.Respnse object. |
void |
finish()
Method within the transaction boudnaries after all processing has
occurred.
|
protected omero.RLong |
firstIdOrNull(java.lang.String query)
Use
IQuery.projection(String, Parameters) to load the first
long which matches the given query. |
java.util.Map<java.lang.String,java.lang.String> |
getCallContext()
Returns the desired call context for this request.
|
omero.cmd.Response |
getResponse()
Returns the current response value.
|
void |
init(Helper helper)
Method called within the transaction boundaries before any processing occurs.
|
protected void |
loadFileAnnotation()
Only called if
loadFileset() finds no Fileset . |
protected void |
loadFileset()
Searches for a
Fileset attached to this Image , and if present,
uses Bio-Formats to parse the metadata into the OriginalMetadataResponse
instance. |
static void |
main(java.lang.String[] args) |
protected void |
parseOriginalMetadataTxt(java.io.File file)
Read the given INI-style file and populate the maps with the properties from the corresponding sections.
|
java.lang.Object |
step(int step)
Single uncancellable action which will be performed by this IRequest.
|
protected java.util.Map<java.lang.String,omero.RType> |
wrap(java.util.Hashtable<java.lang.String,java.lang.Object> table)
|
__read, __read, __write, __write, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId
public OriginalMetadataRequestI(ome.io.nio.PixelsService pixelsService)
public java.util.Map<java.lang.String,java.lang.String> getCallContext()
IRequest
Map
as desired.getCallContext
インタフェース内 IRequest
public void init(Helper helper)
IRequest
Status
object by calling Helper#setSteps(int). This count
will define how many times the {@link #step(int)} method will be called.
The {@link Helper} instance passed in contains those resources needed by
IRequests to interact with data and should be stored for later use.public java.lang.Object step(int step)
IRequest
IRequest.buildResponse(int, Object)
for conversion and storage.public void finish() throws HandleI.Cancel
IRequest
HandleI.Cancel
will still rollback the current
transaction.finish
インタフェース内 IRequest
HandleI.Cancel
public void buildResponse(int step, java.lang.Object object)
IRequest
IRequest.step(int)
to a omero.cmd.Respnse
object.buildResponse
インタフェース内 IRequest
public omero.cmd.Response getResponse()
IRequest
getResponse
インタフェース内 IRequest
protected void loadFileset()
Fileset
attached to this Image
, and if present,
uses Bio-Formats to parse the metadata into the OriginalMetadataResponse
instance. If no Fileset
is present, then there may be a
FileAnnotation
present which has a static version of the metadata.protected void loadFileAnnotation()
loadFileset()
finds no Fileset
. If any FileAnnotation
instances with the appropriate namespace and name are found, the first one is taken and
parsed into the OriginalMetadataResponse
.protected omero.RLong firstIdOrNull(java.lang.String query)
IQuery.projection(String, Parameters)
to load the first
long which matches the given query. This means that the first return
value in the select statement should likely be the id of an object.protected java.util.Map<java.lang.String,omero.RType> wrap(java.util.Hashtable<java.lang.String,java.lang.Object> table)
IceMapper
to convert from Object
instances in
the given Hashtable
to RType
instances. This may
throw an exception on unknown types.protected void parseOriginalMetadataTxt(java.io.File file)
file
- the file to readglobal
- the map in which to put the global metadata propertiesseries
- the map in which to put the series metadata propertiespublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception