public class QueryType extends DataValue
A data type reference for use in a query.
Constructor and Description |
---|
QueryType() |
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Return data type of the wrapped value.
|
static QueryType |
of(DataType type)
Construct a new data type reference.
|
java.lang.String |
toString()
Convert this data value to a string.
|
cloneMutable, equals, getTypeCode, hashCode
public DataType getDataType()
Return data type of the wrapped value.
getDataType
in class DataValue
public static QueryType of(DataType type)
Construct a new data type reference.
type
- Data type.public java.lang.String toString()
Convert this data value to a string.
If the QueryType.dataType
is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used.
JSON format is used for structured values (arrays and objects).