|
||||||||||
| 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.PointValue
public class PointValue
Implementation of BaseType point value.
A space separated list of two integer values. The first value is the horizontal component, the second the vertical.
Example values: '10 50', '32 16'. Character ' is not part of point value.
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single and BaseType is always point.
Cardinality,
BaseType,
IntegerValue,
Serialized Form| Constructor Summary | |
|---|---|
PointValue(int horizontalValue,
int verticalValue)
Constructs PointValue from given horizontal and vertical values. |
|
PointValue(java.lang.String value)
Constructs PointValue from given String representation. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
BaseType |
getBaseType()
Returns baseType of this value. |
int |
hashCode()
|
int |
horizontalValue()
Returns horizontal value of this point. |
java.lang.String |
toString()
|
int |
verticalValue()
Returns vertical value of this point. |
| 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 PointValue(int horizontalValue,
int verticalValue)
PointValue from given horizontal and vertical values.
horizontalValue - horizontal valueverticalValue - vertical value
public PointValue(java.lang.String value)
throws QTIParseException
PointValue from given String representation.
value - String representation of PointValue
QTIParseException - if String representation of PointValue is not valid| Method Detail |
|---|
public BaseType getBaseType()
ValueIf value is NULL or record cardinality returns null.
public int horizontalValue()
public int verticalValue()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic 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 | |||||||||