static class AnnotationUtil.AnnotatableWrapper extends Object
When we reach a RawBioAssay
item or DerivedBioAssay
item, we
remember the extract on that as we move up towards PhysicalBioAssay.
When the PhysicalBioAssay is reached we use the extracts to call
PhysicalBioAssay.getAnnotatableParents(int, Collection)
.
Modifier and Type | Field and Description |
---|---|
private Set<Extract> |
allChildExtractsInChain |
private AnnotationUtil.Cache |
cache |
private AnnotationUtil.AnnotatableWrapper |
chain |
private Extract |
extract |
private Set<Extract> |
extractsInChain |
private Annotatable |
item |
Constructor and Description |
---|
AnnotationUtil.AnnotatableWrapper(Annotatable item,
AnnotationUtil.AnnotatableWrapper chain) |
AnnotationUtil.AnnotatableWrapper(Annotatable item,
AnnotationUtil.Cache cache) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
A wrapper is equal to another if they references the same item
and chain of extracts.
|
(package private) Annotatable |
getAnnotatable()
The annotatable that we are wrapping.
|
(package private) Set<AnnotationUtil.AnnotatableWrapper> |
getAnnotatableParentWrappers(DbControl dc)
Get all annotatable parents wrapped inside AnnotatableWrapper:s
|
private static Extract |
getExtract(Annotatable item)
Get the extract to use.
|
int |
hashCode() |
private Set<Extract> |
loadExtracts()
Load extracts in parent chain.
|
String |
toString() |
private final Annotatable item
private final AnnotationUtil.AnnotatableWrapper chain
private final AnnotationUtil.Cache cache
private final Extract extract
AnnotationUtil.AnnotatableWrapper(Annotatable item, AnnotationUtil.Cache cache)
AnnotationUtil.AnnotatableWrapper(Annotatable item, AnnotationUtil.AnnotatableWrapper chain)
private static Extract getExtract(Annotatable item)
RawBioAssay.getParentExtract()
DerivedBioAssay.getExtract()
Annotatable getAnnotatable()
private Set<Extract> loadExtracts()
Set<AnnotationUtil.AnnotatableWrapper> getAnnotatableParentWrappers(DbControl dc) throws BaseException
BaseException
public boolean equals(Object o)