public class IQueryEnumProvider extends Object implements EnumerationProvider
Constructor and Description |
---|
IQueryEnumProvider(omero.api.IQueryPrx iQuery)
Default IQuery based enumeration provider constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends omero.model.IObject> |
getEnumeration(Class<T> klass,
String value,
boolean loaded)
Retrieves an enumeration.
|
<T extends omero.model.IObject> |
getEnumerations(Class<T> klass)
Retrieves all enumerations of a specific type.
|
public IQueryEnumProvider(omero.api.IQueryPrx iQuery)
iQuery
- OMERO query service to use for enumeration lookups.public <T extends omero.model.IObject> T getEnumeration(Class<T> klass, 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 omero.model.IObject> HashMap<String,T> getEnumerations(Class<T> klass)
EnumerationProvider
getEnumerations
in interface EnumerationProvider
klass
- Enumeration's base class from ome.model.enums
.
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.