org.biomage.Measurement
Class TimeUnit.UnitNameCV

java.lang.Object
  extended by org.biomage.Measurement.TimeUnit.UnitNameCV
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
TimeUnit

public class TimeUnit.UnitNameCV
extends java.lang.Object
implements java.io.Serializable

Inner class for the enumeration values that the attribute unitNameCV can assume.

See Also:
Serialized Form

Field Summary
 int days
           
 int hours
           
 int minutes
           
 int months
           
 int ms
           
 int other
           
 int seconds
           
 int us
           
 int weeks
           
 int years
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getNameByValue(int val)
           
 int getValue()
           
 int getValueByName(java.lang.String name)
           
 java.lang.String setNameByValue(int val)
           
 int setValueByName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

years

public final int years
See Also:
Constant Field Values

months

public final int months
See Also:
Constant Field Values

weeks

public final int weeks
See Also:
Constant Field Values

days

public final int days
See Also:
Constant Field Values

hours

public final int hours
See Also:
Constant Field Values

minutes

public final int minutes
See Also:
Constant Field Values

seconds

public final int seconds
See Also:
Constant Field Values

us

public final int us
See Also:
Constant Field Values

ms

public final int ms
See Also:
Constant Field Values

other

public final int other
See Also:
Constant Field Values
Method Detail

setValueByName

public int setValueByName(java.lang.String name)

getValueByName

public int getValueByName(java.lang.String name)

setNameByValue

public java.lang.String setNameByValue(int val)

getNameByValue

public java.lang.String getNameByValue(int val)

getValue

public int getValue()

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object