public class IQueryEnumProvider extends java.lang.Object implements EnumerationProvider
Constructor and Description |
---|
IQueryEnumProvider(IQueryPrx iQuery)
Default IQuery based enumeration provider constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends IObject> |
getEnumeration(java.lang.Class<T> klass,
java.lang.String value,
boolean loaded)
Retrieves an enumeration.
|
<T extends IObject> |
getEnumerations(java.lang.Class<T> klass)
Retrieves all enumerations of a specific type.
|
public IQueryEnumProvider(IQueryPrx iQuery)
iQuery
- OMERO query service to use for enumeration lookups.public <T extends IObject> T getEnumeration(java.lang.Class<T> klass, java.lang.String value, boolean loaded)
EnumerationProvider
getEnumeration
in interface EnumerationProvider
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
.public <T extends IObject> java.util.HashMap<java.lang.String,T> getEnumerations(java.lang.Class<T> klass)
EnumerationProvider
getEnumerations
in interface EnumerationProvider
klass
- Enumeration's base class from ome.model.enums
.