|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.value.ListValue
org.qtitools.qti.value.OrderedValue
public class OrderedValue
Implementation of "sequence-type" container.
This container can be ordered or NULL (if empty).
Cardinality,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.qtitools.qti.value.ListValue |
|---|
container |
| Constructor Summary | |
|---|---|
OrderedValue()
Constructs empty (NULL) OrderedValue container. |
|
OrderedValue(OrderedValue value)
Constructs empty (NULL) OrderedValue container and adds given OrderedValue into it. |
|
OrderedValue(SingleValue value)
Constructs empty (NULL) OrderedValue container and adds given SingleValue into it. |
|
OrderedValue(SingleValue[] values)
Constructs empty (NULL) OrderedValue container and adds all given SingleValues into it. |
|
| Method Summary | |
|---|---|
boolean |
add(OrderedValue value)
Adds OrderedValue into this container. |
boolean |
contains(OrderedValue orderedValue)
Returns true if this container contains given OrderedValue; false otherwise. |
boolean |
equals(java.lang.Object object)
|
Cardinality |
getCardinality()
Returns cardinality of this value. |
boolean |
isOrdered()
Returns true if this container is ordered; false otherwise. |
| Methods inherited from class org.qtitools.qti.value.ListValue |
|---|
add, clone, contains, count, get, getAll, getBaseType, hashCode, isNull, iterator, removeAll, size, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OrderedValue()
OrderedValue container.
public OrderedValue(SingleValue value)
OrderedValue container and adds given SingleValue into it.
value - added SingleValuepublic OrderedValue(SingleValue[] values)
OrderedValue container and adds all given SingleValues into it.
values - added SingleValuespublic OrderedValue(OrderedValue value)
OrderedValue container and adds given OrderedValue into it.
value - added OrderedValue| Method Detail |
|---|
public Cardinality getCardinality()
ValueIf value is NULL returns null.
public boolean isOrdered()
ListValue
isOrdered in class ListValuepublic boolean contains(OrderedValue orderedValue)
OrderedValue; false otherwise.
orderedValue - given OrderedValue
OrderedValue; false otherwise
public boolean add(OrderedValue value)
throws QTIBaseTypeException
OrderedValue into this container.
Takes all values from OrderedValue container and adds them into this container.
Ordered container can contain only values of the same BaseType.
NULL OrderedValue container is ignored.
value - added OrderedValue
QTIBaseTypeException - if BaseType is not samepublic boolean equals(java.lang.Object object)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||