Package com.io7m.cardant.model
Interface CATypeScalarType
- All Known Implementing Classes:
CATypeScalarType.Integral,CATypeScalarType.Monetary,CATypeScalarType.Real,CATypeScalarType.Text,CATypeScalarType.Time
public sealed interface CATypeScalarType
permits CATypeScalarType.Time, CATypeScalarType.Real, CATypeScalarType.Integral, CATypeScalarType.Text, CATypeScalarType.Monetary
The type of scalar types.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn integer type.static enumThe kind of scalar type.static final recordA monetary type.static final recordA real type.static final recordA text type.static final recordA time type. -
Method Summary
-
Method Details
-
name
com.io7m.lanark.core.RDottedName name()- Returns:
- The type name
-
description
String description()- Returns:
- A humanly-readable description of the type
-
kind
CATypeScalarType.Kind kind()- Returns:
- The internal type kind
-
showConstraint
String showConstraint()- Returns:
- A humanly-readable description of this type's value constraints
-