Ignore:
Timestamp:
09/21/09 15:55:27 (10 years ago)
Author:
curtis
Message:

Combine MetadataStore and MetadataRetrieve Ice interfaces into one IMetadata.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/components/autogen/src/ice/IMetadataI.vm

    r5488 r5490  
    11// 
    2 // MetadataRetrieveI.java 
     2// IMetadataI.java 
    33// 
    44 
     
    3838/** 
    3939 * Server-side Ice wrapper for client/server 
    40  * {@link loci.formats.meta.MetadataRetrieve} objects. 
     40 * {@link loci.formats.meta.IMetadata} objects. 
    4141 * 
    4242 * <dl><dt><b>Source code:</b></dt> 
    43  * <dd><a href="https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/components/bio-formats-ice/src/loci/ice/formats/MetadataRetrieveI.java">Trac</a>, 
    44  * <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/components/bio-formats-ice/src/loci/ice/formats/MetadataRetrieveI.java">SVN</a></dd></dl> 
     43 * <dd><a href="https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/components/bio-formats-ice/src/loci/ice/formats/IMetadataI.java">Trac</a>, 
     44 * <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/components/bio-formats-ice/src/loci/ice/formats/IMetadataI.java">SVN</a></dd></dl> 
    4545 * 
    4646 * @author Hidayath Ansari mansari at wisc.edu 
    4747 * @author Curtis Rueden ctrueden at wisc.edu 
    4848 */ 
    49 public class MetadataRetrieveI extends _MetadataRetrieveDisp { 
     49public class IMetadataI extends _IMetadataDisp { 
    5050 
    5151  // -- Fields -- 
     
    5555  // -- Constructor -- 
    5656 
    57   public MetadataRetrieveI() { 
     57  public IMetadataI() { 
    5858    metadataObject = MetadataTools.createOMEXMLMetadata(); 
    5959  } 
    6060 
    61   // -- MetadataRetrieveI methods -- 
     61  // -- IMetadataI methods -- 
    6262 
    63   public loci.formats.meta.MetadataRetrieve getWrappedObject() { 
     63  public loci.formats.meta.IMetadata getWrappedObject() { 
    6464    return metadataObject; 
    6565  } 
    6666 
     67  public void setMetadataObject(loci.formats.meta.IMetadata meta) { 
     68    metadataObject = meta; 
     69  } 
     70 
    6771  // -- MetadataRetrieve methods -- 
    68  
    69   public MetadataRetrieveI getServant(Current current) { 
    70     return this; 
    71   } 
    7272 
    7373  public String getOMEXML(Current current) { 
     
    110110#end##foreach $entity 
    111111 
     112  // -- MetadataStore methods -- 
     113 
     114  public void createRoot(Current current) { 
     115    metadataObject.createRoot(); 
     116  } 
     117 
     118  // - Entity storage - 
     119 
     120  public void setUUID(String uuid, Current current) { 
     121    metadataObject.setUUID(uuid); 
     122  } 
     123#foreach ($entity in $q.entities()) 
     124#set ($dummy = $q.setEntity($entity)) 
     125 
     126  // - $entity property storage - 
     127#foreach ($prop in $q.props()) 
     128#set ($dummy = $q.setProperty($prop)) 
     129 
     130  public void set$entity$prop($q.primitive($q.type()) $q.var($prop), $q.argsList(), Current current) { 
     131    metadataObject.set$entity$prop($q.var($prop), $q.varsList()); 
     132  } 
     133#end##foreach $prop 
     134#end##foreach $entity 
     135 
    112136} 
Note: See TracChangeset for help on using the changeset viewer.