ome.formats
Class OMEXMLModelComparator

java.lang.Object
  extended by ome.formats.OMEXMLModelComparator
All Implemented Interfaces:
Comparator<ome.util.LSID>

public class OMEXMLModelComparator
extends Object
implements Comparator<ome.util.LSID>

This comparator takes into account the OME-XML data model hierarchy and uses that to define equivalence.

Author:
Chris Allan

Constructor Summary
OMEXMLModelComparator()
           
 
Method Summary
 int compare(ome.util.LSID x, ome.util.LSID y)
           
 int getValue(Class<? extends omero.model.IObject> klass, int indexes)
          Assigns a value to a particular class based on its location in the OME-XML hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

OMEXMLModelComparator

public OMEXMLModelComparator()
Method Detail

compare

public int compare(ome.util.LSID x,
                   ome.util.LSID y)
Specified by:
compare in interface Comparator<ome.util.LSID>

getValue

public int getValue(Class<? extends omero.model.IObject> klass,
                    int indexes)
Assigns a value to a particular class based on its location in the OME-XML hierarchy.

Parameters:
klass - Class to assign a value to.
indexed - Number of class indexes that were present in its LSID.
Returns:
The value.


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.