|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nci.mageom.domain.impl.MAGEOMObject
gov.nih.nci.mageom.domain.impl.ExtendableImpl
gov.nih.nci.mageom.domain.Measurement.impl.MeasurementImpl
public class MeasurementImpl
A Measurement is a quantity with a unit.
| Field Summary | |
|---|---|
protected static java.util.ArrayList |
allAssociationMethods
|
protected static java.util.Hashtable |
associationMethods
|
protected java.lang.String |
kindCV
One of the enumeration values to determine the controlled vocabulary of the value. |
protected java.lang.String |
otherKind
Name of the controlled vocabulary if it isn't one of the Unit subclasses. |
protected java.lang.String |
type
The type of measurement, for instance if the measurement is five feet, it can be either absolute feet tall) or change (five feet further along). |
protected Unit |
unit
DOCUMENT ME |
protected java.lang.Long |
unitId
The internal ID of the associated unit object. |
protected java.lang.String |
value
The value of the measurement. |
| Fields inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl |
|---|
propertySets, propertySetsCount, securedElementId |
| Constructor Summary | |
|---|---|
MeasurementImpl()
Default constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getKindCV()
Returns the value of this Measurement object's kindCV attribute. |
java.lang.String |
getOtherKind()
Returns the value of this Measurement object's otherKind attribute. |
java.lang.String |
getType()
Returns the value of this Measurement object's type attribute. |
Unit |
getUnit()
Returns the value of this Measurement object's unit attribute. |
java.lang.String |
getValue()
Returns the value of this Measurement object's value attribute. |
java.util.Hashtable |
getXMLMethodDescriptors()
Returns a Hashtable containing XMLMethodDescriptors descriptors of
the association methods of this object. |
protected void |
init()
|
Measurement[] |
searchMeasurements(MeasurementSearchCriteria criteria)
Returns an array of Measurement objects that
satisfy the given MeasurementSearchCriteria. |
void |
setKindCV(java.lang.String p_kindCV)
Sets the kindCV attribute. |
void |
setOtherKind(java.lang.String p_otherKind)
Sets the otherKind attribute. |
void |
setType(java.lang.String p_type)
Sets the type attribute. |
void |
setUnit(Unit p_unit)
Sets the unit attribute. |
void |
setValue(java.lang.String p_value)
Sets the value 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 |
|---|
protected static java.util.ArrayList allAssociationMethods
protected static java.util.Hashtable associationMethods
protected java.lang.String type
protected java.lang.String value
protected java.lang.String kindCV
protected java.lang.String otherKind
protected Unit unit
protected java.lang.Long unitId
| Constructor Detail |
|---|
public MeasurementImpl()
| Method Detail |
|---|
protected void init()
init in class ExtendableImpl
public Measurement[] searchMeasurements(MeasurementSearchCriteria criteria)
throws gov.nih.nci.common.search.SearchException
Measurement objects that
satisfy the given MeasurementSearchCriteria.
criteria - The MeasurementSearchCriteria
which represents a query for Measurement objects.
Measurement objects.
A - gov.nih.nci.common.search.SearchException if there is a problem searching.
gov.nih.nci.common.search.SearchExceptionpublic void setType(java.lang.String p_type)
Measurement object.
setType in interface Measurementp_type - The new value for type.Measurement.getType()public java.lang.String getType()
MeasurementMeasurement object's type attribute.
Description of type:
The type of measurement, for instance if the measurement is five feet, it can be either absolute (five
feet tall) or change (five feet further along).
getType in interface Measurementenum {absolute,change} The value of type.Measurement.getType()public void setValue(java.lang.String p_value)
Measurement object.
setValue in interface Measurementp_value - The new value for value.Measurement.getValue()public java.lang.String getValue()
MeasurementMeasurement object's value attribute.
Description of value:
The value of the measurement. kindCV (and otherKind) determine with Unit the datatype of value.
getValue in interface Measurementany The value of value.Measurement.getValue()public void setKindCV(java.lang.String p_kindCV)
Measurement object.
setKindCV in interface Measurementp_kindCV - The new value for kindCV.Measurement.getKindCV()public java.lang.String getKindCV()
MeasurementMeasurement object's kindCV attribute.
Description of kindCV:
One of the enumeration values to determine the controlled vocabulary of the value.
getKindCV in interface Measurementenum {time,distance,temperature,quantity,mass,volume,concentration,other} The value of kindCV.Measurement.getKindCV()public void setOtherKind(java.lang.String p_otherKind)
Measurement object.
setOtherKind in interface Measurementp_otherKind - The new value for otherKind.Measurement.getOtherKind()public java.lang.String getOtherKind()
MeasurementMeasurement object's otherKind attribute.
Description of otherKind:
Name of the controlled vocabulary if it isn't one of the Unit subclasses.
getOtherKind in interface MeasurementString The value of otherKind.Measurement.getOtherKind()public void setUnit(Unit p_unit)
Measurement object.
setUnit in interface Measurementp_unit - The new value for unit.Measurement.getUnit()public Unit getUnit()
MeasurementMeasurement object's unit attribute.
getUnit in interface Measurementgov.nih.nci.mageom.bean.Measurement.Unit The value of unit.Measurement.getUnit()public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
toXML in class ExtendableImplpublic org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
toXMLDoc in class ExtendableImpl
public org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc,
java.util.ArrayList fillOutValues)
toXMLProcessor in class ExtendableImpldoc - the working documentfillOutValues - a list of attribute names that should have
full XML for their values.
public java.util.Hashtable getXMLMethodDescriptors()
XMLMethodDescriptors descriptors of
the association methods of this object.
getXMLMethodDescriptors in class ExtendableImplpublic java.lang.String toString()
toString in class ExtendableImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||