Changeset 4084


Ignore:
Timestamp:
05/30/08 13:37:45 (12 years ago)
Author:
curtis
Message:

Enable Correction and Immersion for 2008-02 schema.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/ome/OMEXML200802Metadata.java

    r4065 r4084  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by curtis via MetadataAutogen on May 30, 2008 1:36:31 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    717717  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveCorrection(int, int) */ 
    718718  public String getObjectiveCorrection(int instrumentIndex, int objectiveIndex) { 
    719     // NB: Correction unsupported for schema version 2008-02 
    720     return null; 
     719    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
     720    return objective == null ? null : objective.getCorrection(); 
    721721  } 
    722722 
     
    729729  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveImmersion(int, int) */ 
    730730  public String getObjectiveImmersion(int instrumentIndex, int objectiveIndex) { 
    731     // NB: Immersion unsupported for schema version 2008-02 
    732     return null; 
     731    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
     732    return objective == null ? null : objective.getImmersion(); 
    733733  } 
    734734 
     
    17821782  /* @see loci.formats.meta.MetadataStore#setObjectiveCorrection(String, int, int) */ 
    17831783  public void setObjectiveCorrection(String correction, int instrumentIndex, int objectiveIndex) { 
    1784     // NB: Correction unsupported for schema version 2008-02 
     1784    if (correction == null) return; 
     1785    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1786    objectiveNode.setCorrection(correction); 
    17851787  } 
    17861788 
     
    17941796  /* @see loci.formats.meta.MetadataStore#setObjectiveImmersion(String, int, int) */ 
    17951797  public void setObjectiveImmersion(String immersion, int instrumentIndex, int objectiveIndex) { 
    1796     // NB: Immersion unsupported for schema version 2008-02 
     1798    if (immersion == null) return; 
     1799    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1800    objectiveNode.setImmersion(immersion); 
    17971801  } 
    17981802 
Note: See TracChangeset for help on using the changeset viewer.