org.qtitools.qti.value
Interface Value

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
MultiValue
All Known Implementing Classes:
AbstractPairValue, BooleanValue, DirectedPairValue, DurationValue, FileValue, FloatValue, IdentifierValue, IntegerValue, ListValue, MultipleValue, NullValue, NumberValue, OrderedValue, PairValue, PointValue, RecordValue, SingleValue, StringValue, UriValue

public interface Value
extends java.io.Serializable

Represents any JQTI value object. Every JQTI value implementation must implement this interface.

This value can be single, multiple, ordered, record or NULL.

Author:
Jiri Kajaba
See Also:
Cardinality, BaseType

Method Summary
 BaseType getBaseType()
          Returns baseType of this value.
 Cardinality getCardinality()
          Returns cardinality of this value.
 boolean isNull()
          Returns true if this value is NULL or false otherwise.
 

Method Detail

isNull

boolean isNull()
Returns true if this value is NULL or false otherwise.

Returns:
true if this value is NULL or false otherwise

getCardinality

Cardinality getCardinality()
Returns cardinality of this value.

If value is NULL returns null.

Returns:
cardinality of this value

getBaseType

BaseType getBaseType()
Returns baseType of this value.

If value is NULL or record cardinality returns null.

Returns:
baseType of this value


Copyright © 2009. All Rights Reserved.