Package ome.api
Interface ITypes
-
- All Superinterfaces:
ServiceInterface
public interface ITypes extends ServiceInterface
Access to reflective type information. Also provides simplified access to special types like enumerations.- Since:
- OMERO3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ome.model.IEnum>
java.util.List<T>allEnumerations(java.lang.Class<T> k)
<T extends ome.model.IEnum>
TcreateEnumeration(T newEnum)
<T extends ome.model.IEnum>
voiddeleteEnumeration(T oEnum)
deletes enumeration value specified by objectjava.util.List<java.lang.Class<ome.model.IAnnotated>>
getAnnotationTypes()
Returns a list of classes which implementIAnnotated
.<T extends ome.model.IEnum>
TgetEnumeration(java.lang.Class<T> k, java.lang.String string)
lookup an enumeration value.<T extends ome.model.IEnum>
java.util.Map<java.lang.Class<T>,java.util.List<T>>getEnumerationsWithEntries()
Gets all metadata classes which are IEnum type with contained objects.<T extends ome.model.IEnum>
java.util.List<java.lang.Class<T>>getEnumerationTypes()
Gets all metadata classes which are IEnum type.<T extends ome.model.IEnum>
java.util.List<T>getOriginalEnumerations()
Gets all original values.<T extends ome.model.IEnum>
voidresetEnumerations(java.lang.Class<T> klass)
<T extends ome.model.IEnum>
TupdateEnumeration(T oEnum)
updates enumeration value specified by object<T extends ome.model.IEnum>
voidupdateEnumerations(java.util.List<T> listEnum)
updates enumeration value specified by object
-
-
-
Method Detail
-
getAnnotationTypes
java.util.List<java.lang.Class<ome.model.IAnnotated>> getAnnotationTypes()
Returns a list of classes which implementIAnnotated
. These can be used in combination withSearch
.- Returns:
- a
List
ofIAnnotated
implementations
-
createEnumeration
<T extends ome.model.IEnum> T createEnumeration(T newEnum)
-
allEnumerations
<T extends ome.model.IEnum> java.util.List<T> allEnumerations(java.lang.Class<T> k)
-
getEnumeration
<T extends ome.model.IEnum> T getEnumeration(java.lang.Class<T> k, java.lang.String string)
lookup an enumeration value. As with the get-methods ofIQuery
queries returning no results will through an exception.- Type Parameters:
T
- The type of the enumeration. Must extendIEnum
- Parameters:
k
- An enumeration class which should be searched.string
- The value for which an enumeration should be found.- Returns:
- A managed enumeration. Never null.
- Throws:
ome.conditions.ApiUsageException
- ifIEnum
is not found.
-
updateEnumeration
<T extends ome.model.IEnum> T updateEnumeration(T oEnum)
updates enumeration value specified by object- Type Parameters:
T
- The type of the enumeration. Must extendIEnum
- Parameters:
oEnum
- An enumeration object which should be searched.- Returns:
- A managed enumeration. Never null.
-
updateEnumerations
<T extends ome.model.IEnum> void updateEnumerations(java.util.List<T> listEnum)
updates enumeration value specified by object- Type Parameters:
T
- The type of the enumeration. Must extendIEnum
- Parameters:
listEnum
- An enumeration collection of objects which should be searched.
-
deleteEnumeration
<T extends ome.model.IEnum> void deleteEnumeration(T oEnum)
deletes enumeration value specified by object- Type Parameters:
T
- The type of the enumeration. Must extendIEnum
- Parameters:
oEnum
- An enumeration object which should be searched.
-
getOriginalEnumerations
<T extends ome.model.IEnum> java.util.List<T> getOriginalEnumerations()
Gets all original values.- Type Parameters:
T
- The type of the enumeration. Must extendIEnum
- Returns:
- A list of managed enumerations.
- Throws:
java.lang.RuntimeException
- if xml parsing failure.
-
resetEnumerations
<T extends ome.model.IEnum> void resetEnumerations(java.lang.Class<T> klass)
-
getEnumerationTypes
<T extends ome.model.IEnum> java.util.List<java.lang.Class<T>> getEnumerationTypes()
Gets all metadata classes which are IEnum type.- Type Parameters:
T
- The type of the enumeration. Must extendIEnum
- Returns:
- list of Class of T extends IEnum
- Throws:
java.lang.RuntimeException
- if Class not found.
-
getEnumerationsWithEntries
<T extends ome.model.IEnum> java.util.Map<java.lang.Class<T>,java.util.List<T>> getEnumerationsWithEntries()
Gets all metadata classes which are IEnum type with contained objects.- Type Parameters:
T
- The type of the enumeration. Must extendIEnum
- Returns:
- list of Class of T extends IEnum
- Throws:
java.lang.RuntimeException
- if xml parsing failure.
-
-