public class IQueryEnumProvider extends java.lang.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(java.lang.Class<T> klass,
java.lang.String value,
boolean loaded)
Retrieves an enumeration.
|
<T extends omero.model.IObject> |
getEnumerations(java.lang.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(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 omero.model.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
.
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.