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

public Interface ScalarResolver

Known Direct Implementers
org.snakeyaml.engine.v2.resolver.BaseScalarResolver
Imports
org.snakeyaml.engine.v2.nodes.Tag

ScalarResolver tries to detect a type of scalar value by its content (when the tag is implicit)

Method Summary

Modifier and TypeMethod and Description
public Tag

Returns:

the Tag that matches the contents
resolve
(String
- the value of the scalar node
value
,
Boolean
- true if there was no tag specified (the tag will be resolved)
implicit
)

Resolve (detect) the tag of the scalar node of the given type.

Method Detail

resolveback to summary
public Tag resolve(String value, Boolean implicit)

Resolve (detect) the tag of the scalar node of the given type.

Parameters
value:String

- the value of the scalar node

implicit:Boolean

- true if there was no tag specified (the tag will be resolved)

Returns:Tag

the Tag that matches the contents