public class TypedDistinctValue extends Object
A TypedDistinctValue is a value that includes a type.
| Constructor and Description |
|---|
TypedDistinctValue() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> as)
Returns the value as an instance of the specified class.
|
String |
getType()
Returns the type of the value.
|
public String getType()
Returns the type of the value.
Value types are returned as XSD type names, for example, "xs:integer" or "xs:date".
public <T> T get(Class<T> as)
Returns the value as an instance of the specified class.
This method converts the value according to its type and then casts it to the specified class.
T - The type.as - The instance class.Copyright © 2013-2017 MarkLogic Corporation.