|
3.0.4: 2012-03-05 | ||||||||
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 the RawBioAssay.getParentExtract()
property
until we have loaded the Extracts of a Physical Bioassay.
When we reach a RawBioAssay
item, we remember the parent extract on
that as we move up to DerivedBioAssaySet and PhysicalBioAssay.
When the PhysicalBioAssay is reached we use the extract to call
PhysicalBioAssay.getAnnotatableParents(int, Extract)
so that we only
get extracts that are linked with the correct raw bioassay.
Field Summary | |
---|---|
private Extract |
extract
|
private Annotatable |
item
|
Constructor Summary | |
---|---|
AnnotationUtil.AnnotatableWrapper(Annotatable item,
Extract extract)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
A wrapper is equal to another if they references the same item and extract. |
(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,
Extract extract)
Get the extract to use. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Annotatable item
private final Extract extract
Constructor Detail |
---|
AnnotationUtil.AnnotatableWrapper(Annotatable item, Extract extract)
Method Detail |
---|
private static Extract getExtract(Annotatable item, Extract extract)
RawBioAssay.getParentExtract()
DerivedBioAssay.getExtract()
Annotatable getAnnotatable()
Set<AnnotationUtil.AnnotatableWrapper> getAnnotatableParentWrappers() throws BaseException
BaseException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
3.0.4: 2012-03-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |