|
||||||||||
| 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.BooleanValue
public class BooleanValue
Implementation of BaseType boolean value.
Legal String representations of boolean value are: true, 1, false, 0.
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single and BaseType is always boolean.
Cardinality,
BaseType,
Serialized Form| Constructor Summary | |
|---|---|
BooleanValue(boolean value)
Constructs BooleanValue from given boolean. |
|
BooleanValue(java.lang.String value)
Constructs BooleanValue from given String representation. |
|
| Method Summary | |
|---|---|
boolean |
booleanValue()
Returns the value of this BooleanValue as A boolean. |
boolean |
equals(java.lang.Object object)
|
BaseType |
getBaseType()
Returns baseType of this value. |
int |
hashCode()
|
static boolean |
parseBoolean(java.lang.String value)
Parses the String argument as A boolean. |
java.lang.String |
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 BooleanValue(boolean value)
BooleanValue from given boolean.
value - boolean
public BooleanValue(java.lang.String value)
throws QTIParseException
BooleanValue from given String representation.
value - String representation of BooleanValue
QTIParseException - if String representation of BooleanValue is not valid| Method Detail |
|---|
public BaseType getBaseType()
ValueIf value is NULL or record cardinality returns null.
public boolean booleanValue()
BooleanValue as A boolean.
BooleanValue as A booleanpublic 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
public static boolean parseBoolean(java.lang.String value)
throws QTIParseException
String argument as A boolean.
value - String representation of boolean
boolean
QTIParseException - if String representation of boolean is not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||