public class AnnotationUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
AnnotationUtil.AnnotatableWrapper
This wrapper class is needed because we need to keep
track of extracts linked with raw bioassays and derived bioassays
until we have loaded the Extracts of a Physical Bioassay.
|
static class |
AnnotationUtil.Cache |
Constructor and Description |
---|
AnnotationUtil() |
Modifier and Type | Method and Description |
---|---|
static AnnotationUtil.Cache |
createCache()
Create a new cache object that can be used with
getAllAnnotatableParentItems(DbControl, Annotatable, Filter, Cache) |
static java.util.Set<Annotatable> |
getAllAnnotatableParentItems(DbControl dc,
Annotatable item,
Filter<Annotatable> filter)
Get all annotatable parent items for a given item.
|
static java.util.Set<Annotatable> |
getAllAnnotatableParentItems(DbControl dc,
Annotatable item,
Filter<Annotatable> filter,
AnnotationUtil.Cache cache)
Get all annotatable parent items for a given item.
|
public static AnnotationUtil.Cache createCache()
getAllAnnotatableParentItems(DbControl, Annotatable, Filter, Cache)
public static java.util.Set<Annotatable> getAllAnnotatableParentItems(DbControl dc, Annotatable item, Filter<Annotatable> filter)
Filter
may be used to filter the returned collection. If a filter
is specified only parent items for which the Filter.evaluate(Object)
method returns true are included in the returned collection. Note
that all parent items are loaded before the filter is evaluated
and that the evaluation order is undefined.dc
- The DbControl to use for database accessitem
- The item to find the parents forfilter
- An optional filter that can be used to filter
which parents to includegetAllAnnotatableParentItems(DbControl, Annotatable, Filter, Cache)
public static java.util.Set<Annotatable> getAllAnnotatableParentItems(DbControl dc, Annotatable item, Filter<Annotatable> filter, AnnotationUtil.Cache cache)
Filter
may be used to filter the returned collection. If a filter
is specified only parent items for which the Filter.evaluate(Object)
method returns true are included in the returned collection. Note
that all parent items are loaded before the filter is evaluated
and that the evaluation order is undefined. A cache may be used
to improve performance if this method is called multiple times
with different items that have overlapping parent trees.dc
- The DbControl to use for database accessitem
- The item to find the parents forfilter
- An optional filter that can be used to filter
which parents to includecache
- An optional cache objectcreateCache()