static class AnnotationUtil.AnnotatableWrapper
extends java.lang.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 java.util.Set<Extract> |
allChildExtractsInChain |
private AnnotationUtil.Cache |
cache |
private AnnotationUtil.AnnotatableWrapper |
chain |
private Extract |
extract |
private java.util.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(java.lang.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) java.util.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 java.util.Set<Extract> |
loadExtracts()
Load extracts in parent chain.
|
java.lang.String |
toString() |
private final Annotatable item
private final java.util.Set<Extract> extractsInChain
private java.util.Set<Extract> allChildExtractsInChain
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 java.util.Set<Extract> loadExtracts()
java.util.Set<AnnotationUtil.AnnotatableWrapper> getAnnotatableParentWrappers(DbControl dc) throws BaseException
BaseException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object