source: trunk/loci/formats/auto/DummyMetadata.vm @ 3481

Revision 3481, 2.4 KB checked in by curtis, 12 years ago (diff)

Use Velocity template engine for metadata logic autogenerator.

Line 
1//
2// DummyMetadata.java
3//
4
5/*
6LOCI Bio-Formats package for reading and converting biological file formats.
7Copyright (C) 2005-@year@ Melissa Linkert, Curtis Rueden, Chris Allan,
8Eric Kjellman and Brian Loranger.
9
10This program is free software; you can redistribute it and/or modify
11it under the terms of the GNU Library General Public License as published by
12the Free Software Foundation; either version 2 of the License, or
13(at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18GNU Library General Public License for more details.
19
20You should have received a copy of the GNU Library General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23*/
24
25/*-----------------------------------------------------------------------------
26 *
27 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY.
28 * Created by $user via MetadataAutogen on $timestamp
29 *
30 *-----------------------------------------------------------------------------
31 */
32
33package loci.formats.meta;
34
35/**
36 * A dummy implementation for {@link MetadataStore} and
37 * {@link MetadataRetrieve} that is used when no other
38 * metadata implementations are available.
39 *
40 * <dl><dt><b>Source code:</b></dt>
41 * <dd><a href="https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/loci/formats/DummyMetadata.java">Trac</a>,
42 * <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/loci/formats/DummyMetadata.java">SVN</a></dd></dl>
43 *
44 * @author Chris Allan callan at blackcat.ca
45 * @author Curtis Rueden ctrueden at wisc.edu
46 */
47public class DummyMetadata implements MetadataRetrieve, MetadataStore {
48
49  // -- MetadataRetrieve API methods --
50
51#foreach ($entity in $entities)
52  // -- $entity.name() property retrieval --
53
54#foreach ($prop in $entity.props())
55  /* @see MetadataRetrieve#get$entity.name()$prop.name()($entity.indicesList(true, false)) */
56  public $prop.type() get$entity.name()$prop.name()($entity.indicesList(true, true)) {
57    return null;
58  }
59
60#end
61#end
62  // -- MetadataStore API methods --
63
64#foreach ($entity in $entities)
65  /* @see MetadataStore#set$entity.name()($entity.argsList(true, false)) */
66  public void set$entity.name()($entity.argsList(true, true)) {
67  }
68
69#end
70}
Note: See TracBrowser for help on using the repository browser.