|
||||||||||
| 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.AbstractPairValue
org.qtitools.qti.value.DirectedPairValue
public class DirectedPairValue
Implementation of BaseType directedPair value.
A space separated list of two identifier values with the source identifier first, followed by the destination identifier.
Example values: 'A B', 'choice5 choice1', 'apple fruit', 'carrot vegetable'. Character ' is not part of directedPair value.
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single and BaseType is always directedPair.
Cardinality,
BaseType,
IdentifierValue,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.qtitools.qti.value.AbstractPairValue |
|---|
destValue, sourceValue |
| Constructor Summary | |
|---|---|
DirectedPairValue(java.lang.String value)
Constructs DirectedPairValue from given String representation. |
|
DirectedPairValue(java.lang.String sourceValue,
java.lang.String destValue)
Constructs DirectedPairValue from given pair of identifiers. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
BaseType |
getBaseType()
Returns baseType of this value. |
boolean |
isDirected()
Returns true if this pair is directed false otherwise. |
| Methods inherited from class org.qtitools.qti.value.AbstractPairValue |
|---|
destValue, hashCode, sourceValue, 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 DirectedPairValue(java.lang.String sourceValue,
java.lang.String destValue)
DirectedPairValue from given pair of identifiers.
sourceValue - source (first) identifierdestValue - destination (second) identifier
public DirectedPairValue(java.lang.String value)
throws QTIParseException
DirectedPairValue from given String representation.
value - String representation of DirectedPairValue
QTIParseException - if String representation of DirectedPairValue is not valid| Method Detail |
|---|
public BaseType getBaseType()
ValueIf value is NULL or record cardinality returns null.
public boolean isDirected()
AbstractPairValue
isDirected in class AbstractPairValuepublic 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 | |||||||||