Ignore:
Timestamp:
04/11/08 15:56:39 (12 years ago)
Author:
curtis
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/auto/DummyMetadata.vm

    r3605 r3917  
    5050 
    5151  // - Entity counting - 
    52 #foreach ($entity in $entities) 
    53 #if ($entity.countable()) 
     52#foreach ($entity in $q.entities()) 
     53#set ($dummy = $q.setEntity($entity)) 
     54#if ($q.countable()) 
    5455 
    55   /* @see MetadataRetrieve#get$entity.name()Count($entity.indicesList(true, false, false)) */ 
    56   public int get$entity.name()Count($entity.indicesList(true, true, false)) { 
     56  /* @see MetadataRetrieve#get${entity}Count($q.indicesList(true, false, false)) */ 
     57  public int get${entity}Count($q.indicesList(true, true, false)) { 
    5758    return -1; 
    5859  } 
     
    6162 
    6263  // - Entity retrieval - 
    63 #foreach ($entity in $entities) 
     64#foreach ($entity in $q.entities()) 
     65#set ($dummy = $q.setEntity($entity)) 
    6466 
    65   /* @see MetadataRetrieve#get$entity.name()($entity.indicesList(true, false)) */ 
    66   public Object get$entity.name()($entity.indicesList(true, true)) { 
    67     return null; 
    68   } 
    69 #end##foreach $entity 
    70 #foreach ($entity in $entities) 
     67  // - $entity property retrieval - 
    7168 
    72   // - $entity.name() property retrieval - 
    73  
    74 #foreach ($prop in $entity.props()) 
    75   /* @see MetadataRetrieve#get$entity.name()$prop.name()($entity.indicesList(true, false)) */ 
    76   public $prop.type(true) get$entity.name()$prop.name()($entity.indicesList(true, true)) { 
     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)) { 
    7773    return null; 
    7874  } 
     
    9288  } 
    9389 
    94 #foreach ($entity in $entities) 
     90#foreach ($entity in $q.entities()) 
     91#set ($dummy = $q.setEntity($entity)) 
    9592 
    96   // - $entity.name() property storage - 
    97 #foreach ($prop in $entity.props()) 
     93  // - $entity property storage - 
     94#foreach ($prop in $q.props()) 
     95#set ($dummy = $q.setProperty($prop)) 
    9896 
    99   /* @see MetadataStore#set$entity.name()$prop.name()($prop.type(true), $entity.indicesList(true, false)) */ 
    100   public void set$entity.name()$prop.name()($prop.type(true) $prop.varName(), $entity.indicesList(true, true)) { 
     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)) { 
    10199  } 
    102100#end##foreach $prop 
Note: See TracChangeset for help on using the changeset viewer.