public class DataType extends Object implements Comparable<DataType>
Modifier and Type | Field and Description |
---|---|
Node |
dataTypeXml |
String |
id |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DataType other) |
static DataType |
getDataType(Node dataTypeXml)
Parse the datatype and return as an EnumType or RegexType instance if possible.
|
static Map<String,String> |
getDataTypes(Node dataTypesXml)
Get a key/value map of all datatypes available.
|
public DataType(Node dataTypeXml)
public static Map<String,String> getDataTypes(Node dataTypesXml)
dataTypesXml
- The XMLpublic static DataType getDataType(Node dataTypeXml)
dataTypeXml
- The XMLpublic int compareTo(DataType other)
compareTo
in interface Comparable<DataType>
Copyright © 2012–2022 The DAISY Consortium. All rights reserved.