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

Revision 3917, 3.1 KB checked in by curtis, 12 years ago (diff)

A bunch of work on the loci.formats.meta autogenerator. Not finished yet.

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/meta/DummyMetadata.java">Trac</a>,
42 * <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/loci/formats/meta/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  // - Entity counting -
52#foreach ($entity in $q.entities())
53#set ($dummy = $q.setEntity($entity))
54#if ($q.countable())
55
56  /* @see MetadataRetrieve#get${entity}Count($q.indicesList(true, false, false)) */
57  public int get${entity}Count($q.indicesList(true, true, false)) {
58    return -1;
59  }
60#end##if countable
61#end##foreach $entity
62
63  // - Entity retrieval -
64#foreach ($entity in $q.entities())
65#set ($dummy = $q.setEntity($entity))
66
67  // - $entity property retrieval -
68
69#foreach ($prop in $q.props())
70#set ($dummy = $q.setProperty($prop))
71  /* @see MetadataRetrieve#get$entity$prop($q.indicesList(true, false)) */
72  public $q.type() get$entity$prop($q.indicesList(true, true)) {
73    return null;
74  }
75#end##foreach $prop
76#end##foreaach $entity
77
78  // -- MetadataStore API methods --
79
80  public void createRoot() {
81  }
82
83  public Object getRoot() {
84    return null;
85  }
86
87  public void setRoot(Object root) {
88  }
89
90#foreach ($entity in $q.entities())
91#set ($dummy = $q.setEntity($entity))
92
93  // - $entity property storage -
94#foreach ($prop in $q.props())
95#set ($dummy = $q.setProperty($prop))
96
97  /* @see MetadataStore#set$entity$prop($q.type(), $q.indicesList(true, false)) */
98  public void set$entity$prop($q.type() $q.var($prop), $q.indicesList(true, true)) {
99  }
100#end##foreach $prop
101#end##foreach $entity
102
103}
Note: See TracBrowser for help on using the repository browser.