public final class MetadataConverter extends Object
MetadataRetrieve
object into a destination MetadataStore
.
This technique allows conversion between two different storage media.
For example, it can be used to convert an OMEROMetadataStore
(OMERO's metadata store implementation) into an
OMEXMLMetadataImpl
, thus generating OME-XML from
information in an OMERO database.
Modifier and Type | Method and Description |
---|---|
static void |
convertChannels(MetadataRetrieve src,
int srcImage,
int srcChannel,
MetadataStore dest,
int destImage,
int destChannel,
boolean copyID)
Copy all metadata from the specified channel in the source MetadataRetrieve
to the specified channel in the destination MetadataStore.
|
static void |
convertChannels(MetadataRetrieve src,
int srcImage,
int srcChannel,
MetadataStore dest,
int destImage,
int destChannel,
boolean copyID,
List<String> lightSourceIds)
Copy all metadata from the specified channel in the source MetadataRetrieve
to the specified channel in the destination MetadataStore.
|
static void |
convertMetadata(MetadataRetrieve src,
MetadataStore dest)
Copies information from a metadata retrieval object
(source) into a metadata store (destination).
|
public static void convertMetadata(MetadataRetrieve src, MetadataStore dest)
public static void convertChannels(MetadataRetrieve src, int srcImage, int srcChannel, MetadataStore dest, int destImage, int destChannel, boolean copyID)
setImageID(..., destImage)
), but the destination Channel only
needs to exist if the copyID flag is false
LightSource references are assumed to be correct and are not checked for validity.
src
- the source MetadataRetrieve
srcImage
- the index of the Channel's parent Image in srcsrcChannel
- the index of the Channel in srcdest
- the destination MetadataStore
destImage
- the index of the Channel's parent Image in destdestChannel
- the index of the Channel in destcopyID
- false if the Channel ID should be omitted from the copy operationpublic static void convertChannels(MetadataRetrieve src, int srcImage, int srcChannel, MetadataStore dest, int destImage, int destChannel, boolean copyID, List<String> lightSourceIds)
setImageID(..., destImage)
), but the destination Channel only
needs to exist if the copyID flag is false
src
- the source MetadataRetrieve
srcImage
- the index of the Channel's parent Image in srcsrcChannel
- the index of the Channel in srcdest
- the destination MetadataStore
destImage
- the index of the Channel's parent Image in destdestChannel
- the index of the Channel in destcopyID
- false if the Channel ID should be omitted from the copy operationlightSourceIds
- list of valid LightSource IDs for reference checkingCopyright © 2006–2020 Open Microscopy Environment. All rights reserved.