Top Description Methods
org.snakeyaml.engine.v2.schema

public Interface Schema

Known Direct Implementers
org.snakeyaml.engine.v2.schema.FailsafeSchema, org.snakeyaml.engine.v2.schema.JsonSchema
Imports
java.util.Map, org.snakeyaml.engine.v2.api.ConstructNode, org.snakeyaml.engine.v2.nodes.Tag, org.snakeyaml.engine.v2.resolver.ScalarResolver

Interface to be implemented by any Schema

Method Summary

Modifier and TypeMethod and Description
public ScalarResolver

Returns:

tag resolver for parse and dump
getScalarResolver
()

Provide the way to connect a tag to a node by the contents of the scalar node.

public Map<Tag, ConstructNode>

Returns:

constructors for the tags in schema
getSchemaTagConstructors
()

Provide the way to construct the resolved tag.

Method Detail

getScalarResolverback to summary
public ScalarResolver getScalarResolver()

Provide the way to connect a tag to a node by the contents of the scalar node. It is used either during implicit tag resolution for parsing or for dumping

Returns:ScalarResolver

tag resolver for parse and dump

getSchemaTagConstructorsback to summary
public Map<Tag, ConstructNode> getSchemaTagConstructors()

Provide the way to construct the resolved tag. This map will override the default values in tagConstructors

Returns:Map<Tag, ConstructNode>

constructors for the tags in schema