|
||||||||||
| 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.StringValue
public class StringValue
Implementation of BaseType string value.
See XML for more accurately definition.
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single and BaseType is always string.
Cardinality,
BaseType,
Serialized Form| Constructor Summary | |
|---|---|
StringValue(java.lang.String value)
Constructs StringValue from given String representation. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
BaseType |
getBaseType()
Returns baseType of this value. |
int |
hashCode()
|
java.lang.String |
stringValue()
Returns the value of this StringValue as A String. |
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 StringValue(java.lang.String value)
throws QTIParseException
StringValue from given String representation.
value - String representation of StringValue
QTIParseException - if String representation of StringValue is not valid| Method Detail |
|---|
public BaseType getBaseType()
ValueIf value is NULL or record cardinality returns null.
public java.lang.String stringValue()
StringValue as A String.
StringValue as A Stringpublic 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 | |||||||||