Class IQueryEnumProvider

  • All Implemented Interfaces:
    EnumerationProvider

    public class IQueryEnumProvider
    extends java.lang.Object
    implements EnumerationProvider
    An enumeration provider which uses IQuery and a cache to fulfill the contract of an EnumerationProvider.
    • Constructor Summary

      Constructors 
      Constructor Description
      IQueryEnumProvider​(IQueryPrx iQuery)
      Default IQuery based enumeration provider constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends IObject>
      T
      getEnumeration​(java.lang.Class<T> klass, java.lang.String value, boolean loaded)
      Retrieves an enumeration.
      <T extends IObject>
      java.util.HashMap<java.lang.String,​T>
      getEnumerations​(java.lang.Class<T> klass)
      Retrieves all enumerations of a specific type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IQueryEnumProvider

        public IQueryEnumProvider​(IQueryPrx iQuery)
        Default IQuery based enumeration provider constructor.
        Parameters:
        iQuery - OMERO query service to use for enumeration lookups.
    • Method Detail

      • getEnumeration

        public <T extends IObject> T getEnumeration​(java.lang.Class<T> klass,
                                                    java.lang.String value,
                                                    boolean loaded)
        Description copied from interface: EnumerationProvider
        Retrieves an enumeration.
        Specified by:
        getEnumeration in interface EnumerationProvider
        Parameters:
        klass - Enumeration's base class from ome.model.enums.
        value - Enumeration's string value.
        loaded - true if the enumeration returned should be loaded, otherwise false.
        Returns:
        Enumeration object.
      • getEnumerations

        public <T extends IObject> java.util.HashMap<java.lang.String,​T> getEnumerations​(java.lang.Class<T> klass)
        Description copied from interface: EnumerationProvider
        Retrieves all enumerations of a specific type.
        Specified by:
        getEnumerations in interface EnumerationProvider
        Parameters:
        klass - Enumeration's base class from ome.model.enums.
        Returns:
        Enumeration object.