|
||||||||||
| 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.UriValue
public class UriValue
Implementation of BaseType uri value.
Bound using the XML schema any URI type.
This class uses implementation of stadard java URI class.
Example values: 'http://www.example.com/', 'images/icon.gif', 'mailto:user@example.com'. Character ' is not part of uri value.
This class is not mutable and cannot contain NULL value.
Cardinality of this class is always single and BaseType is always uri.
Cardinality,
BaseType,
URI,
Serialized Form| Constructor Summary | |
|---|---|
UriValue(java.lang.String value)
Constructs UriValue from given String representation. |
|
UriValue(java.net.URI value)
Constructs UriValue from given URI. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
BaseType |
getBaseType()
Returns baseType of this value. |
int |
hashCode()
|
static java.net.URI |
parseUri(java.lang.String value)
Parses the String argument as A URI. |
java.lang.String |
toString()
|
java.net.URI |
uriValue()
Returns the value of this UriValue as A URI. |
| 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 UriValue(java.net.URI value)
UriValue from given URI.
value - URI
public UriValue(java.lang.String value)
throws QTIParseException
UriValue from given String representation.
value - String representation of UriValue
QTIParseException - if String representation of UriValue is not valid| Method Detail |
|---|
public BaseType getBaseType()
ValueIf value is NULL or record cardinality returns null.
public java.net.URI uriValue()
UriValue as A URI.
UriValue as A URIpublic 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.net.URI parseUri(java.lang.String value)
throws QTIParseException
String argument as A URI.
value - String representation of URI
URI
QTIParseException - if String representation of URI is not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||