Package io.github.qishr.cascara.common.lang.type
Class AbstractScalarDescriptor
java.lang.Object
io.github.qishr.cascara.common.lang.type.AbstractTypeDescriptor
io.github.qishr.cascara.common.lang.type.AbstractScalarDescriptor
All Implemented Interfaces:
ScalarDescriptor
Direct Known Subtypes:
UuidTypeDescriptor, UriTypeDescriptor, PathTypeDescriptor, DateTimeTypeDescriptor, InstantTypeDescriptor, ByteArrayDescriptor
public abstract class AbstractScalarDescriptor
extends AbstractTypeDescriptor
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
| public static final String | KEYWORD_CONTENT_ENCODING | |
| public static final String | KEYWORD_FORMAT |
Constructor Summary
| Constructor | Description |
|---|---|
| AbstractScalarDescriptor(Class |
|
| AbstractScalarDescriptor(Class |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public String | getFormat() | |
| public String | getContentEncoding() | |
| public void | populateSchema(MapAstNode, ?, ?> schema) | |
| protected void | formatError(String text, Reporter collector) |
Methods inherited from AbstractTypeDescriptor
getSchemaType, getServiceProperties, getJvmType
Field Details
KEYWORD_CONTENT_ENCODING
public static final String KEYWORD_CONTENT_ENCODING
See Also:
KEYWORD_FORMAT
public static final String KEYWORD_FORMAT
See Also:
Method Details
getFormat
public String getFormat()
Specified By:
getContentEncoding
public String getContentEncoding()
Specified By:
populateSchema
public void populateSchema(MapAstNode, ?, ?> schema)
Specified By:
Overrides:
formatError
protected void formatError(String text, Reporter collector)