source: trunk/loci/formats/auto/MetadataConverter.vm @ 4079

Revision 4079, 2.2 KB checked in by curtis, 12 years ago (diff)

Make metadata converter only call property setters for non-null properties.

Line 
1//
2// MetadataConverter.java
3//
4
5/*
6OME Bio-Formats package for reading and converting biological file formats.
7Copyright (C) 2005-@year@ UW-Madison LOCI and Glencoe Software, Inc.
8
9This program is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 3 of the License, or
12(at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22*/
23
24/*-----------------------------------------------------------------------------
25 *
26 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY.
27 * Created by $user via MetadataAutogen on $timestamp
28 *
29 *-----------------------------------------------------------------------------
30 */
31
32package loci.formats.meta;
33
34/**
35 * A utility class containing a method for piping a source
36 * {@link MetadataRetrieve} object into a destination {@link MetadataStore}.
37 * This technique allows non-OME-XML-based metadata stores (such as OMERO's
38 * metadata store implementation) to be easily converted to another
39 * implementation, particularly {@link loci.formats.ome.OMEXMLMetadata},
40 * which allows generation of OME-XML from OMERO metadata.
41 *
42 * <dl><dt><b>Source code:</b></dt>
43 * <dd><a href="https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/loci/formats/meta/MetadataConverter.java">Trac</a>,
44 * <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/loci/formats/meta/MetadataConverter.java">SVN</a></dd></dl>
45 *
46 * @author Curtis Rueden ctrueden at wisc.edu
47 */
48public final class MetadataConverter {
49
50  // -- Constructor --
51
52  private MetadataConverter() { }
53
54  // -- MetadataConverter API methods --
55
56  /**
57   * Copies information from a metadata retrieval object
58   * (source) into a metadata store (destination).
59   */
60  public static void convertMetadata(MetadataRetrieve src, MetadataStore dest) {
61$convertMetadataBody  }
62
63}
Note: See TracBrowser for help on using the repository browser.