Package dev.enola.datatype
Interface Datatype<T>
- All Known Implementing Classes:
DatatypeThing
,ImmutableDatatype
@Immutable
public interface Datatype<T>
-
Method Summary
Modifier and TypeMethodDescriptionchild()
iri()
IRI of this datatype.javaType()
Type
in Java.pattern()
Regular ExpressionPattern
which text of this datatype matches.Converter from/to T invalid input: '<'=> text.default ObjectToStringBiConverter
<Object> Converter from/to Object (expected to be of T) invalid input: '<'=> text.
-
Method Details
-
iri
String iri()IRI of this datatype. Always present, never null or empty. -
pattern
Regular ExpressionPattern
which text of this datatype matches. -
stringConverter
ObjectToStringBiConverter<T> stringConverter()Converter from/to T invalid input: '<'=> text. -
stringConverterFromObject
Converter from/to Object (expected to be of T) invalid input: '<'=> text. Just for convenience. -
javaType
Type
in Java.- Returns:
- Java Type of this datatype, if any. (It may be unknown or N/A.)
-
child
DatatypeBuilder<T> child()
-