类 StringResolver


  • @Issue(id="131",
           uri="https://github.com/microbean/microbean-helm/issues/131")
    public final class StringResolver
    extends org.yaml.snakeyaml.resolver.Resolver
    A Resolver that forces scalars to be Strings.
    作者:
    Laird Nelson
    另请参阅:
    Issue 131
    • 字段概要

      • 从类继承的字段 org.yaml.snakeyaml.resolver.Resolver

        BOOL, EMPTY, FLOAT, INT, MERGE, NULL, TIMESTAMP, VALUE, YAML, yamlImplicitResolvers
    • 构造器详细资料

      • StringResolver

        public StringResolver()
        Creates a new StringResolver.
    • 方法详细资料

      • resolve

        public final org.yaml.snakeyaml.nodes.Tag resolve​(org.yaml.snakeyaml.nodes.NodeId kind,
                                                          String value,
                                                          boolean implicit)
        Overrides the Resolver.resolve(NodeId, String, boolean) method so that all implicit scalar non-null YAML node values are resolved as Tag.STR.
        覆盖:
        resolve 在类中 org.yaml.snakeyaml.resolver.Resolver
        参数:
        kind - the kind of YAML node being processed; may be null
        value - the value of the node; may be null
        implicit - whether the typing is implicit or explicit
        返回:
        a Tag instance representing the YAML node type
        另请参阅:
        Resolver.resolve(NodeId, String, boolean)