2.17.2: 2011-06-17

net.sf.basedb.core.data
Class AnnotatedData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.OwnedData
          extended by net.sf.basedb.core.data.SharedData
              extended by net.sf.basedb.core.data.CommonData
                  extended by net.sf.basedb.core.data.AnnotatedData
All Implemented Interfaces:
AnnotatableData, IdentifiableData, LoggableData, NameableData, OwnableData, RemovableData, ShareableData
Direct Known Subclasses:
ArrayBatchData, ArrayDesignData, ArraySlideData, BioMaterialData, BioPlateData, HybridizationData, PlateData, PluginConfigurationData, ProtocolData, RawBioAssayData, ScanData

public abstract class AnnotatedData
extends CommonData
implements AnnotatableData, LoggableData

This class extends the CommonData class and implements the AnnotatableData interface. Ie. by extending this class a data item becomes annotatable.

Version:
2.0
Author:
Nicklas
See Also:
AnnotatableData, AnnotatedItem, Annotation overview

Field Summary
private  AnnotationSetData annotationSet
           
 
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
AnnotatedData()
           
 
Method Summary
 AnnotationSetData getAnnotationSet()
          Get the annotation set that holds the annotations for an item.
 void setAnnotationSet(AnnotationSetData annotationSet)
          Change the annotation set.
 
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class net.sf.basedb.core.data.OwnedData
getOwner, setOwner
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
 
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
 

Field Detail

annotationSet

private AnnotationSetData annotationSet
Constructor Detail

AnnotatedData

public AnnotatedData()
Method Detail

getAnnotationSet

public AnnotationSetData getAnnotationSet()
Description copied from interface: AnnotatableData
Get the annotation set that holds the annotations for an item.

Specified by:
getAnnotationSet in interface AnnotatableData
Returns:
An AnnotationSetData item or null if no annotations exist

setAnnotationSet

public void setAnnotationSet(AnnotationSetData annotationSet)
Description copied from interface: AnnotatableData
Change the annotation set. Use null to remove the annotations.

Specified by:
setAnnotationSet in interface AnnotatableData
Parameters:
annotationSet - Annotation set to change to.

2.17.2: 2011-06-17