2.17.2: 2011-06-17

net.sf.basedb.util
Class AnnotationUtil

java.lang.Object
  extended by net.sf.basedb.util.AnnotationUtil

public class AnnotationUtil
extends Object

Utility class for working with annotations.

Version:
2.9
Author:
Nicklas
Last modified
$Date: 2010-08-13 10:50:27 +0200 (Fri, 13 Aug 2010) $

Nested Class Summary
(package private) static class AnnotationUtil.AnnotatableWrapper
          This wrapper class is needed because we need to keep track of the RawBioAssay.getArrayNum() property until we have loaded the Labeled Extracts of a Hybridization.
 
Constructor Summary
AnnotationUtil()
           
 
Method Summary
static Set<Annotatable> getAllAnnotatableParentItems(DbControl dc, Annotatable item, Filter<Annotatable> filter)
          Get all annotatable parent items for a given item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtil

public AnnotationUtil()
Method Detail

getAllAnnotatableParentItems

public static Set<Annotatable> getAllAnnotatableParentItems(DbControl dc,
                                                            Annotatable item,
                                                            Filter<Annotatable> filter)
Get all annotatable parent items for a given item. A 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.

Parameters:
dc - The DbControl to use for database access
item - The item to find the parents for
filter - An optional filter that can be used to filter which parents to include
Returns:
A set containing the parent items

2.17.2: 2011-06-17