|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.AnnotationUtil.AnnotatableWrapper
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.
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)
.
Field Summary | |
---|---|
private AnnotationUtil.Cache |
cache
|
private AnnotationUtil.AnnotatableWrapper |
chain
|
private Extract |
extract
|
private Set<Extract> |
extractsInChain
|
private Annotatable |
item
|
Constructor Summary | |
---|---|
AnnotationUtil.AnnotatableWrapper(Annotatable item,
AnnotationUtil.AnnotatableWrapper chain)
|
|
AnnotationUtil.AnnotatableWrapper(Annotatable item,
AnnotationUtil.Cache cache)
|
Method Summary | |
---|---|
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()
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Annotatable item
private final Set<Extract> extractsInChain
private final AnnotationUtil.AnnotatableWrapper chain
private final AnnotationUtil.Cache cache
private final Extract extract
Constructor Detail |
---|
AnnotationUtil.AnnotatableWrapper(Annotatable item, AnnotationUtil.Cache cache)
AnnotationUtil.AnnotatableWrapper(Annotatable item, AnnotationUtil.AnnotatableWrapper chain)
Method Detail |
---|
private static Extract getExtract(Annotatable item)
RawBioAssay.getParentExtract()
DerivedBioAssay.getExtract()
Annotatable getAnnotatable()
private Set<Extract> loadExtracts()
Set<AnnotationUtil.AnnotatableWrapper> getAnnotatableParentWrappers() throws BaseException
BaseException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |