|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.value.SingleValue
org.qtitools.qti.value.DurationValue
public class DurationValue
Implementation of BaseType duration value.
The number of seconds, expressed as A floating point number and bound according to the rules for the simple type float.
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single and BaseType is always duration.
Cardinality,
BaseType,
FloatValue,
Serialized Form| Constructor Summary | |
|---|---|
DurationValue(double value)
Constructs DurationValue from given double. |
|
DurationValue(java.lang.String value)
Constructs DurationValue from given String representation. |
|
| Method Summary | |
|---|---|
double |
doubleValue()
Returns the value of this DurationValue as A double. |
boolean |
equals(java.lang.Object object)
|
BaseType |
getBaseType()
Returns baseType of this value. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class org.qtitools.qti.value.SingleValue |
|---|
getCardinality, isNull |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DurationValue(double value)
throws java.lang.IllegalArgumentException
DurationValue from given double.
value - double
java.lang.IllegalArgumentException - if given double is negative
public DurationValue(java.lang.String value)
throws QTIParseException
DurationValue from given String representation.
value - String representation of DurationValue
QTIParseException - if String representation of DurationValue is not valid| Method Detail |
|---|
public BaseType getBaseType()
ValueIf value is NULL or record cardinality returns null.
public double doubleValue()
DurationValue as A double.
DurationValue as A doublepublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||