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
OMEXMLMetadata
, thus generating OME-XML from
information in an OMERO database.
Modifier | Constructor and Description |
---|---|
private |
MetadataConverter()
Private constructor; all methods in MetadataConverter
are static, so this should not be called.
|
Modifier and Type | Method and Description |
---|---|
private static void |
convertBooleanAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all BooleanAnnotation attributes.
|
private static void |
convertCommentAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all CommentAnnotation attributes.
|
private static void |
convertDatasets(MetadataRetrieve src,
MetadataStore dest)
Convert all Dataset attributes.
|
private static void |
convertDoubleAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all DoubleAnnotation attributes.
|
private static void |
convertExperimenterGroups(MetadataRetrieve src,
MetadataStore dest)
Convert all ExperimenterGroup attributes.
|
private static void |
convertExperimenters(MetadataRetrieve src,
MetadataStore dest)
Convert all Experimenter attributes.
|
private static void |
convertExperiments(MetadataRetrieve src,
MetadataStore dest)
Convert all Experiment attributes.
|
private static void |
convertFileAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all FileAnnotation attributes.
|
private static void |
convertImages(MetadataRetrieve src,
MetadataStore dest,
List<String> lightSourceIds)
Convert all Image attributes.
|
private static List<String> |
convertInstruments(MetadataRetrieve src,
MetadataStore dest)
Convert all Instrument attributes.
|
private static void |
convertLightSources(MetadataRetrieve src,
MetadataStore dest,
int instrumentIndex,
List<String> lightSourceIds)
Convert all LightSource attributes for the given instrument.
|
private static void |
convertListAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all ListAnnotation attributes.
|
private static void |
convertLongAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all LongAnnotation attributes.
|
private static void |
convertMapAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all MapAnnotation attributes.
|
static void |
convertMetadata(MetadataRetrieve src,
MetadataStore dest)
Copies information from a metadata retrieval object
(source) into a metadata store (destination).
|
private static void |
convertPlates(MetadataRetrieve src,
MetadataStore dest)
Convert all Plate attributes.
|
private static void |
convertProjects(MetadataRetrieve src,
MetadataStore dest)
Convert all Project attributes.
|
private static void |
convertROIs(MetadataRetrieve src,
MetadataStore dest)
Convert all ROI attributes.
|
private static void |
convertRootAttributes(MetadataRetrieve src,
MetadataStore dest)
Convert all top-level attributes.
|
private static void |
convertScreens(MetadataRetrieve src,
MetadataStore dest)
Convert all Screen attributes.
|
private static void |
convertTagAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all TagAnnotation attributes.
|
private static void |
convertTermAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all TermAnnotation attributes.
|
private static void |
convertTimestampAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all TimestampAnnotation attributes.
|
private static void |
convertXMLAnnotations(MetadataRetrieve src,
MetadataStore dest)
Convert all XMLAnnotation attributes.
|
private MetadataConverter()
public static void convertMetadata(MetadataRetrieve src, MetadataStore dest)
private static void convertBooleanAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertCommentAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertDatasets(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertDoubleAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertExperiments(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertExperimenters(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertExperimenterGroups(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertFileAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertImages(MetadataRetrieve src, MetadataStore dest, List<String> lightSourceIds)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copylightSourceIds
- the collection of light source identifiers.private static List<String> convertInstruments(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertListAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertLongAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertMapAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertPlates(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertProjects(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertROIs(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertScreens(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertTagAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertTermAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertTimestampAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertXMLAnnotations(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyprivate static void convertLightSources(MetadataRetrieve src, MetadataStore dest, int instrumentIndex, List<String> lightSourceIds)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyinstrumentIndex
- the index of the Instrument to convertlightSourceIds
- the collection of light source to populateprivate static void convertRootAttributes(MetadataRetrieve src, MetadataStore dest)
src
- the MetadataRetrieve from which to copydest
- the MetadataStore to which to copyCopyright © 2016 Open Microscopy Environment