org.qtitools.qti.value
Class NumberValue

java.lang.Object
  extended by org.qtitools.qti.value.SingleValue
      extended by org.qtitools.qti.value.NumberValue
All Implemented Interfaces:
java.io.Serializable, Value
Direct Known Subclasses:
FloatValue, IntegerValue

public abstract class NumberValue
extends SingleValue

Superclass for all numeric BaseTypes.

Author:
Jiri Kajaba
See Also:
BaseType, IntegerValue, FloatValue, Serialized Form

Constructor Summary
NumberValue()
           
 
Method Summary
abstract  double doubleValue()
          Returns the value of this NumberValue as A double.
abstract  int intValue()
          Returns the value of this NumberValue as A int.
 
Methods inherited from class org.qtitools.qti.value.SingleValue
getCardinality, isNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qtitools.qti.value.Value
getBaseType
 

Constructor Detail

NumberValue

public NumberValue()
Method Detail

intValue

public abstract int intValue()
Returns the value of this NumberValue as A int.

Returns:
the value of this NumberValue as A int

doubleValue

public abstract double doubleValue()
Returns the value of this NumberValue as A double.

Returns:
the value of this NumberValue as A double


Copyright © 2009. All Rights Reserved.