Package ome.formats.enums
Class IQueryEnumProvider
- java.lang.Object
-
- ome.formats.enums.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>
TgetEnumeration(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.
-
-
-
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 interfaceEnumerationProvider
- Parameters:
klass
- Enumeration's base class fromome.model.enums
.value
- Enumeration's string value.loaded
-true
if the enumeration returned should be loaded, otherwisefalse
.- 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 interfaceEnumerationProvider
- Parameters:
klass
- Enumeration's base class fromome.model.enums
.- Returns:
- Enumeration object.
-
-