Package org.snakeyaml.engine.v2.resolver
Class JsonScalarResolver
- java.lang.Object
-
- org.snakeyaml.engine.v2.resolver.JsonScalarResolver
-
- All Implemented Interfaces:
ScalarResolver
public class JsonScalarResolver extends Object implements ScalarResolver
ScalarResolver for JSON Schema The schema is NOT the same as in YAML 1.2 but identical to JSON,- See Also:
- Chapter 10.2. JSON Schema
-
-
Constructor Summary
Constructors Constructor Description JsonScalarResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddImplicitResolver(Tag tag, Pattern regexp, String first)protected voidaddImplicitResolvers()Tagresolve(String value, Boolean implicit)Resolve (detect) the tag of the scalar node of the given type.
-
-
-
Method Detail
-
addImplicitResolvers
protected void addImplicitResolvers()
-
resolve
public Tag resolve(String value, Boolean implicit)
Description copied from interface:ScalarResolverResolve (detect) the tag of the scalar node of the given type.- Specified by:
resolvein interfaceScalarResolver- Parameters:
value- - the value of the scalar nodeimplicit- - true if there was no tag specified (the tag will be resolved)- Returns:
- the Tag that matches the contents
-
-