|
||||||||||
| 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
public abstract class AbstractPairValue
Superclass for pair and directedPair values.
Classes PairValue and DirectedPairValue have different only isDirected
and equals methods.
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single.
Cardinality,
Serialized Form| Field Summary | |
|---|---|
protected java.lang.String |
destValue
Destination value. |
protected java.lang.String |
sourceValue
Source value. |
| Constructor Summary | |
|---|---|
AbstractPairValue(java.lang.String value)
Constructs AbstractPairValue from given String representation. |
|
AbstractPairValue(java.lang.String sourceValue,
java.lang.String destValue)
Constructs AbstractPairValue from given pair of identifiers. |
|
| Method Summary | |
|---|---|
java.lang.String |
destValue()
Returns destination (second) identifier. |
int |
hashCode()
|
abstract boolean |
isDirected()
Returns true if this pair is directed false otherwise. |
java.lang.String |
sourceValue()
Returns source (first) identifier. |
java.lang.String |
toString()
|
| Methods inherited from class org.qtitools.qti.value.SingleValue |
|---|
getCardinality, isNull |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.qtitools.qti.value.Value |
|---|
getBaseType |
| Field Detail |
|---|
protected java.lang.String sourceValue
protected java.lang.String destValue
| Constructor Detail |
|---|
public AbstractPairValue(java.lang.String sourceValue,
java.lang.String destValue)
AbstractPairValue from given pair of identifiers.
sourceValue - source (first) identifierdestValue - destination (second) identifier
public AbstractPairValue(java.lang.String value)
throws QTIParseException
AbstractPairValue from given String representation.
value - String representation of AbstractPairValue
QTIParseException - if String representation of AbstractPairValue is not valid| Method Detail |
|---|
public abstract boolean isDirected()
public java.lang.String sourceValue()
public java.lang.String destValue()
public 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 | |||||||||