public enum DataType extends Enum<DataType>
This enums contains the data types that are supported by SHACL
Enum Constant and Description |
---|
Boolean
The Boolean.
|
Date
The Date.
|
DateTime
The Date time.
|
Decimal
The Decimal.
|
Double
The Double.
|
Float
The Float.
|
Integer
The Integer.
|
String
The String.
|
URI
The uri.
|
XMLLiteral
The XML literal.
|
Modifier and Type | Method and Description |
---|---|
static DataType |
fromString(String string)
From string.
|
static DataType |
fromURI(URI uri)
From URI.
|
String |
toString() |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType Boolean
public static final DataType DateTime
public static final DataType Date
public static final DataType Decimal
public static final DataType Double
public static final DataType Float
public static final DataType Integer
public static final DataType String
public static final DataType XMLLiteral
public static final DataType URI
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DataType fromString(String string)
string
- the stringCopyright © 2018. All Rights Reserved.