|
||||||||||
| 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.IdentifierValue
public class IdentifierValue
Implementation of BaseType identifier value.
Identifier starts with letter or underscore(_) and contains only letters, underscores(_), digits, hyphens(-) and periods(.).
CombiningChars and Extenders are not currently supported!
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single and BaseType is always identifier.
Cardinality,
BaseType,
Serialized Form| Constructor Summary | |
|---|---|
IdentifierValue(java.lang.String value)
Constructs IdentifierValue from given String representation. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
BaseType |
getBaseType()
Returns baseType of this value. |
int |
hashCode()
|
static java.lang.String |
parseIdentifier(java.lang.String value)
Parses the String argument as A identifier. |
java.lang.String |
stringValue()
Returns the value of this IdentifierValue 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 IdentifierValue(java.lang.String value)
throws QTIParseException
IdentifierValue from given String representation.
value - String representation of IdentifierValue
QTIParseException - if String representation of IdentifierValue is not valid| Method Detail |
|---|
public BaseType getBaseType()
ValueIf value is NULL or record cardinality returns null.
public java.lang.String stringValue()
IdentifierValue as A String.
IdentifierValue 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
public static java.lang.String parseIdentifier(java.lang.String value)
throws QTIParseException
String argument as A identifier.
value - String representation of identifier
identifier
QTIParseException - if String representation of identifier is not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||