org.biomage.Measurement
Class Measurement

java.lang.Object
  |
  +--org.biomage.Common.Extendable
        |
        +--org.biomage.Measurement.Measurement
All Implemented Interfaces:
HasPropertySets, HasUnit, java.io.Serializable

public class Measurement
extends Extendable
implements java.io.Serializable, HasUnit

A Measurement is a quantity with a unit.

See Also:
Serialized Form

Nested Class Summary
 class Measurement.KindCV
          Inner class for the enumeration values that the attribute kindCV can assume.
 class Measurement.Type
          Inner class for the enumeration values that the attribute type can assume.
 
Nested classes inherited from class org.biomage.Interface.HasPropertySets
HasPropertySets.PropertySets_list
 
Field Summary
protected  Unit unit
          The Unit associated with the Measurement.
 
Fields inherited from class org.biomage.Common.Extendable
propertySets
 
Constructor Summary
Measurement()
          Default constructor.
Measurement(org.xml.sax.Attributes atts)
          Attribute constructor.
 
Method Summary
 Measurement.KindCV getKindCV()
          Get method for kindCV
 java.lang.String getNameByValueKindCV(int val)
          For KindCV get the Name of the Enumeration type by passing a Value to it.
 java.lang.String getNameByValueType(int val)
          For Type get the Name of the Enumeration type by passing a Value to it.
 java.lang.String getNameKindCV()
          Return the current name of the Enumeration type of KindCV.
 java.lang.String getNameType()
          Return the current name of the Enumeration type of Type.
 java.lang.String getOtherKind()
          Get method for otherKind
 Measurement.Type getType()
          Get method for type
 Unit getUnit()
          Get method for unit
 java.lang.Object getValue()
          Get method for value
 int getValueByNameKindCV(java.lang.String name)
          For KindCV get the Value of the Enumeration type by passing a Name to it.
 int getValueByNameType(java.lang.String name)
          For Type get the Value of the Enumeration type by passing a Name to it.
 int getValueKindCV()
          Return the currrent value of the Enumeration type of KindCV.
 int getValueType()
          Return the currrent value of the Enumeration type of Type.
 void setKindCV(Measurement.KindCV kindCV)
          Set method for kindCV
 java.lang.String setNameByValueKindCV(int val)
          For KindCV set the Name of the Enumeration type by passing a value (int)
 java.lang.String setNameByValueType(int val)
          For Type set the Name of the Enumeration type by passing a value (int)
 void setOtherKind(java.lang.String otherKind)
          Set method for otherKind
 void setType(Measurement.Type type)
          Set method for type
 void setUnit(Unit unit)
          Set method for unit
 void setValue(java.lang.Object value)
          Set method for value
 int setValueByNameKindCV(java.lang.String name)
          For KindCV set the Value of the Enumeration type by passing a Name to it.
 int setValueByNameType(java.lang.String name)
          For Type set the Value of the Enumeration type by passing a Name to it.
 void writeAssociations(java.io.Writer out)
          writeAssociations This method is responsible for assembling the association data into XML.
 void writeAttributes(java.io.Writer out)
          writeAttributes This method is responsible for assembling the attribute data into XML.
 void writeMAGEML(java.io.Writer out)
          writeMAGEML This method is responsible for assembling the attribute and association data into XML.
 
Methods inherited from class org.biomage.Common.Extendable
addToPropertySets, addToPropertySets, getFromPropertySets, getPropertySets, removeElementAtFromPropertySets, removeFromPropertySets, setPropertySets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

protected Unit unit
The Unit associated with the Measurement.

Constructor Detail

Measurement

public Measurement()
Default constructor.


Measurement

public Measurement(org.xml.sax.Attributes atts)
Attribute constructor. Looks up the attributes in the parameter and casts them from strings appropriately

Method Detail

writeMAGEML

public void writeMAGEML(java.io.Writer out)
                 throws java.io.IOException
writeMAGEML This method is responsible for assembling the attribute and association data into XML. It creates the object tag and then calls the writeAttributes and writeAssociation methods.

Overrides:
writeMAGEML in class Extendable
java.io.IOException

writeAttributes

public void writeAttributes(java.io.Writer out)
                     throws java.io.IOException
writeAttributes This method is responsible for assembling the attribute data into XML. It calls the super method to write out all attributes of this class and it's ancestors.

Overrides:
writeAttributes in class Extendable
java.io.IOException

writeAssociations

public void writeAssociations(java.io.Writer out)
                       throws java.io.IOException
writeAssociations This method is responsible for assembling the association data into XML. It calls the super method to write out all associations of this class's ancestors.

Overrides:
writeAssociations in class Extendable
java.io.IOException

setType

public void setType(Measurement.Type type)
Set method for type


getType

public Measurement.Type getType()
Get method for type

Returns:
value of the attribute

setNameByValueType

public java.lang.String setNameByValueType(int val)
For Type set the Name of the Enumeration type by passing a value (int)


setValueByNameType

public int setValueByNameType(java.lang.String name)
For Type set the Value of the Enumeration type by passing a Name to it.


getNameByValueType

public java.lang.String getNameByValueType(int val)
For Type get the Name of the Enumeration type by passing a Value to it.


getValueByNameType

public int getValueByNameType(java.lang.String name)
For Type get the Value of the Enumeration type by passing a Name to it.


getNameType

public java.lang.String getNameType()
Return the current name of the Enumeration type of Type.


getValueType

public int getValueType()
Return the currrent value of the Enumeration type of Type.


setValue

public void setValue(java.lang.Object value)
Set method for value

Parameters:
value - to set

getValue

public java.lang.Object getValue()
Get method for value

Returns:
value of the attribute

setKindCV

public void setKindCV(Measurement.KindCV kindCV)
Set method for kindCV


getKindCV

public Measurement.KindCV getKindCV()
Get method for kindCV

Returns:
value of the attribute

setNameByValueKindCV

public java.lang.String setNameByValueKindCV(int val)
For KindCV set the Name of the Enumeration type by passing a value (int)


setValueByNameKindCV

public int setValueByNameKindCV(java.lang.String name)
For KindCV set the Value of the Enumeration type by passing a Name to it.


getNameByValueKindCV

public java.lang.String getNameByValueKindCV(int val)
For KindCV get the Name of the Enumeration type by passing a Value to it.


getValueByNameKindCV

public int getValueByNameKindCV(java.lang.String name)
For KindCV get the Value of the Enumeration type by passing a Name to it.


getNameKindCV

public java.lang.String getNameKindCV()
Return the current name of the Enumeration type of KindCV.


getValueKindCV

public int getValueKindCV()
Return the currrent value of the Enumeration type of KindCV.


setOtherKind

public void setOtherKind(java.lang.String otherKind)
Set method for otherKind


getOtherKind

public java.lang.String getOtherKind()
Get method for otherKind

Returns:
value of the attribute

setUnit

public void setUnit(Unit unit)
Set method for unit

Specified by:
setUnit in interface HasUnit

getUnit

public Unit getUnit()
Get method for unit

Specified by:
getUnit in interface HasUnit
Returns:
value of the attribute


Copyright (C) 2002 The MicroArray Gene Expression Database group (MGED) All rights reserved.