Skip to content

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 jvmType, String schemaType, String format)
AbstractScalarDescriptor(Class jvmType, String schemaType, String format, String contentEncoding)

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:

Constant Field Values


KEYWORD_FORMAT

public static final String KEYWORD_FORMAT

See Also:

Constant Field Values


Method Details

getFormat

public String getFormat()

Specified By:

ScalarDescriptor


getContentEncoding

public String getContentEncoding()

Specified By:

ScalarDescriptor


populateSchema

public void populateSchema(MapAstNode schema)

Specified By:

ScalarDescriptor

Overrides:

AbstractTypeDescriptor


formatError

protected void formatError(String text, Reporter collector)