Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.biomage.Measurement
Class Measurement  view Measurement download Measurement.java

java.lang.Object
  extended byorg.biomage.Common.Extendable
      extended byorg.biomage.Measurement.Measurement
All Implemented Interfaces:
org.biomage.Interface.HasPropertySets, org.biomage.Interface.HasUnit, java.io.Serializable

public class Measurement
extends org.biomage.Common.Extendable
implements java.io.Serializable, org.biomage.Interface.HasUnit

A Measurement is a quantity with a unit.


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
org.biomage.Interface.HasPropertySets.PropertySets_list
 
Field Summary
(package private)  Measurement.KindCV kindCV
          One of the enumeration values to determine the controlled vocabulary of the value.
(package private)  java.lang.String otherKind
          Name of the controlled vocabulary if it isn't one of the Unit subclasses.
(package private)  Measurement.Type 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).
private  Unit unit
          The Unit associated with the Measurement.
(package private)  java.lang.Object value
          The value of the measurement.
 
Fields inherited from class org.biomage.Common.Extendable
 
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 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
 void setKindCV(Measurement.KindCV kindCV)
          Set method for kindCV
 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
 void writeAssociations(java.io.Writer out)
          writeAssociations
 void writeAttributes(java.io.Writer out)
          writeAttributes
 void writeMAGEML(java.io.Writer out)
          writeMAGEML
 
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

type

Measurement.Type 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).


value

java.lang.Object value
The value of the measurement. kindCV (and otherKind) determine with Unit the datatype of value.


kindCV

Measurement.KindCV kindCV
One of the enumeration values to determine the controlled vocabulary of the value.


otherKind

java.lang.String otherKind
Name of the controlled vocabulary if it isn't one of the Unit subclasses.


unit

private 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.


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.


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.


setType

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


getType

public Measurement.Type getType()
Get method for type


setValue

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


getValue

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


setKindCV

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


getKindCV

public Measurement.KindCV getKindCV()
Get method for kindCV


setOtherKind

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


getOtherKind

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


setUnit

public void setUnit(Unit unit)
Set method for unit

Specified by:
setUnit in interface org.biomage.Interface.HasUnit

getUnit

public Unit getUnit()
Get method for unit

Specified by:
getUnit in interface org.biomage.Interface.HasUnit