Package io.github.qishr.cascara.common.lang.type
Class DateTimeTypeDescriptor
java.lang.Object
io.github.qishr.cascara.common.lang.type.AbstractTypeDescriptor<java.time.ZonedDateTime>
io.github.qishr.cascara.common.lang.type.AbstractScalarDescriptor<java.time.ZonedDateTime>
io.github.qishr.cascara.common.lang.type.DateTimeTypeDescriptor
public class DateTimeTypeDescriptor
extends AbstractScalarDescriptor<ZonedDateTime>
Constructor Summary
| Constructor | Description |
|---|---|
| DateTimeTypeDescriptor() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public ZonedDateTime | toJvmType(String text) | |
| public Object | toPrimitive(ZonedDateTime jvmInstance) | |
| public boolean | validate(String text, Reporter collector) |
Methods inherited from AbstractTypeDescriptor
getSchemaType, getServiceProperties, getJvmType
Methods inherited from AbstractScalarDescriptor
getFormat, populateSchema, getContentEncoding, formatError
Method Details
toJvmType
public ZonedDateTime toJvmType(String text)
toPrimitive
public Object toPrimitive(ZonedDateTime jvmInstance)
validate
public boolean validate(String text, Reporter collector)