com.kitfox.xml
Class NumberWithUnits

java.lang.Object
  extended by com.kitfox.xml.NumberWithUnits

public class NumberWithUnits
extends java.lang.Object

Author:
Mark McKay, Mark McKay

Field Summary
static int UT_CM
           
static int UT_EM
           
static int UT_EX
           
static int UT_IN
           
static int UT_MM
           
static int UT_PC
           
static int UT_PT
           
static int UT_PX
           
static int UT_UNITLESS
           
 
Constructor Summary
NumberWithUnits()
          Creates a new instance of NumberWithUnits
NumberWithUnits(java.lang.String value)
           
 
Method Summary
 int getUnits()
           
 float getValue()
           
 void set(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UT_UNITLESS

public static final int UT_UNITLESS
See Also:
Constant Field Values

UT_PX

public static final int UT_PX
See Also:
Constant Field Values

UT_CM

public static final int UT_CM
See Also:
Constant Field Values

UT_MM

public static final int UT_MM
See Also:
Constant Field Values

UT_IN

public static final int UT_IN
See Also:
Constant Field Values

UT_EM

public static final int UT_EM
See Also:
Constant Field Values

UT_EX

public static final int UT_EX
See Also:
Constant Field Values

UT_PT

public static final int UT_PT
See Also:
Constant Field Values

UT_PC

public static final int UT_PC
See Also:
Constant Field Values
Constructor Detail

NumberWithUnits

public NumberWithUnits()
Creates a new instance of NumberWithUnits


NumberWithUnits

public NumberWithUnits(java.lang.String value)
Method Detail

getValue

public float getValue()

getUnits

public int getUnits()

set

public void set(java.lang.String value)