|
||||||||||
| 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.MultipleValue
public class MultipleValue
Implementation of "bag-type" container.
This container can be multiple or NULL (if empty).
Cardinality,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.qtitools.qti.value.ListValue |
|---|
container |
| Constructor Summary | |
|---|---|
MultipleValue()
Constructs empty (NULL) MultipleValue container. |
|
MultipleValue(MultipleValue value)
Constructs empty (NULL) MultipleValue container and adds given MultipleValue into it. |
|
MultipleValue(SingleValue value)
Constructs empty (NULL) MultipleValue container and adds given SingleValue into it. |
|
MultipleValue(SingleValue[] values)
Constructs empty (NULL) MultipleValue container and adds all given SingleValues into it. |
|
| Method Summary | |
|---|---|
boolean |
add(MultipleValue value)
Adds MultipleValue into this container. |
boolean |
contains(MultipleValue multipleValue)
Returns true if this container contains given MultipleValue; 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 MultipleValue()
MultipleValue container.
public MultipleValue(SingleValue value)
MultipleValue container and adds given SingleValue into it.
value - added SingleValuepublic MultipleValue(SingleValue[] values)
MultipleValue container and adds all given SingleValues into it.
values - added SingleValuespublic MultipleValue(MultipleValue value)
MultipleValue container and adds given MultipleValue into it.
value - added MultipleValue| Method Detail |
|---|
public Cardinality getCardinality()
ValueIf value is NULL returns null.
public boolean isOrdered()
ListValue
isOrdered in class ListValuepublic boolean contains(MultipleValue multipleValue)
MultipleValue; false otherwise.
multipleValue - given MultipleValue
MultipleValue; false otherwise
public boolean add(MultipleValue value)
throws QTIBaseTypeException
MultipleValue into this container.
Takes all values from MultipleValue container and adds them into this container.
Multiple container can contain only values of the same BaseType.
NULL MultipleValue container is ignored.
value - added MultipleValue
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 | |||||||||