gov.nih.nci.mageom.domain.BioMaterial.impl
Class BioMaterialMeasurementImpl

java.lang.Object
  extended by gov.nih.nci.mageom.domain.impl.MAGEOMObject
      extended by gov.nih.nci.mageom.domain.impl.ExtendableImpl
          extended by gov.nih.nci.mageom.domain.BioMaterial.impl.BioMaterialMeasurementImpl
All Implemented Interfaces:
BioMaterialMeasurement, Extendable, java.io.Serializable

public class BioMaterialMeasurementImpl
extends ExtendableImpl
implements BioMaterialMeasurement

A BioMaterialMeasurement is a pairing of a source BioMaterial and an amount (Measurement) of that BioMaterial.

Version:
%I%, %G%
See Also:
Serialized Form

Field Summary
protected static java.util.ArrayList allAssociationMethods
           
protected static java.util.Hashtable associationMethods
           
protected  BioMaterial bioMaterial
          DOCUMENT ME
protected  java.lang.Long bioMaterialId
          The internal ID of the associated bioMaterial object.
protected  Measurement measurement
          DOCUMENT ME
protected  java.lang.Long measurementId
          The internal ID of the associated measurement object.
 
Fields inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
propertySets, propertySetsCount, securedElementId
 
Constructor Summary
BioMaterialMeasurementImpl()
          Default constructor
 
Method Summary
 BioMaterial getBioMaterial()
          Returns the value of this BioMaterialMeasurement object's bioMaterial attribute.
 Measurement getMeasurement()
          Returns the value of this BioMaterialMeasurement object's measurement attribute.
 java.util.Hashtable getXMLMethodDescriptors()
          Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.
protected  void init()
           
 BioMaterialMeasurement[] searchBioMaterialMeasurements(BioMaterialMeasurementSearchCriteria criteria)
          Returns an array of BioMaterialMeasurement objects that satisfy the given BioMaterialMeasurementSearchCriteria.
 void setBioMaterial(BioMaterial p_bioMaterial)
          Sets the bioMaterial attribute.
 void setMeasurement(Measurement p_measurement)
          Sets the measurement attribute.
 java.lang.String toString()
          Returns a String representation of this object suitable for console display.
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc, java.util.ArrayList fillOutValues)
          Returns an XML representation of the object.
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
getPropertySets, getPropertySetsCount, getSecuredElementId, searchExtendables, setPropertySets, setSecuredElementId
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.MAGEOMObject
getId, getIsEditable, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nih.nci.mageom.domain.Extendable
getPropertySets, setPropertySets
 

Field Detail

allAssociationMethods

protected static java.util.ArrayList allAssociationMethods

associationMethods

protected static java.util.Hashtable associationMethods

bioMaterial

protected BioMaterial bioMaterial
DOCUMENT ME


bioMaterialId

protected java.lang.Long bioMaterialId
The internal ID of the associated bioMaterial object.


measurement

protected Measurement measurement
DOCUMENT ME


measurementId

protected java.lang.Long measurementId
The internal ID of the associated measurement object.

Constructor Detail

BioMaterialMeasurementImpl

public BioMaterialMeasurementImpl()
Default constructor

Method Detail

init

protected void init()
Overrides:
init in class ExtendableImpl

searchBioMaterialMeasurements

public BioMaterialMeasurement[] searchBioMaterialMeasurements(BioMaterialMeasurementSearchCriteria criteria)
                                                       throws gov.nih.nci.common.search.SearchException
Returns an array of BioMaterialMeasurement objects that satisfy the given BioMaterialMeasurementSearchCriteria.

Parameters:
criteria - The BioMaterialMeasurementSearchCriteria which represents a query for BioMaterialMeasurement objects.
Returns:
An array of BioMaterialMeasurement objects.
Throws:
A - gov.nih.nci.common.search.SearchException if there is a problem searching.
gov.nih.nci.common.search.SearchException

setBioMaterial

public void setBioMaterial(BioMaterial p_bioMaterial)
Sets the bioMaterial attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a BioMaterialMeasurement object.

Specified by:
setBioMaterial in interface BioMaterialMeasurement
Parameters:
p_bioMaterial - The new value for bioMaterial.
See Also:
BioMaterialMeasurement.getBioMaterial()

getBioMaterial

public BioMaterial getBioMaterial()
Description copied from interface: BioMaterialMeasurement
Returns the value of this BioMaterialMeasurement object's bioMaterial attribute.

Specified by:
getBioMaterial in interface BioMaterialMeasurement
Returns:
gov.nih.nci.mageom.bean.BioMaterial.BioMaterial The value of bioMaterial.
See Also:
BioMaterialMeasurement.getBioMaterial()

setMeasurement

public void setMeasurement(Measurement p_measurement)
Sets the measurement attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a BioMaterialMeasurement object.

Specified by:
setMeasurement in interface BioMaterialMeasurement
Parameters:
p_measurement - The new value for measurement.
See Also:
BioMaterialMeasurement.getMeasurement()

getMeasurement

public Measurement getMeasurement()
Description copied from interface: BioMaterialMeasurement
Returns the value of this BioMaterialMeasurement object's measurement attribute.

Specified by:
getMeasurement in interface BioMaterialMeasurement
Returns:
gov.nih.nci.mageom.bean.Measurement.Measurement The value of measurement.
See Also:
BioMaterialMeasurement.getMeasurement()

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
Overrides:
toXML in class ExtendableImpl

toXMLDoc

public org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
Overrides:
toXMLDoc in class ExtendableImpl

toXMLProcessor

public org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc,
                                          java.util.ArrayList fillOutValues)
Returns an XML representation of the object. The document is not modified.

Overrides:
toXMLProcessor in class ExtendableImpl
Parameters:
doc - the working document
fillOutValues - a list of attribute names that should have full XML for their values.
Returns:
org.w3c.dom.Element an XML representation

getXMLMethodDescriptors

public java.util.Hashtable getXMLMethodDescriptors()
Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.

Overrides:
getXMLMethodDescriptors in class ExtendableImpl
Returns:
Hashtable The Hashtable of descriptors.

toString

public java.lang.String toString()
Returns a String representation of this object suitable for console display.

Overrides:
toString in class ExtendableImpl
Returns:
the String representation.