gpt4 book ai didi

org.geotools.ysld.parse.YamlParseContext.setDocHint()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 13:20:18 27 4
gpt4 key购买 nike

本文整理了Java中org.geotools.ysld.parse.YamlParseContext.setDocHint()方法的一些代码示例,展示了YamlParseContext.setDocHint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlParseContext.setDocHint()方法的具体详情如下:
包路径:org.geotools.ysld.parse.YamlParseContext
类名称:YamlParseContext
方法名:setDocHint

YamlParseContext.setDocHint介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

@Test
  public void testDocHints() throws Exception {
    YamlParseContext ctxt = new YamlParseContext();
    YamlParseHandler handler = createMock(YamlParseHandler.class);
    YamlObject obj1 = createMock(YamlObject.class);

    replay(handler);

    ctxt.push(obj1, handler);

    assertThat(ctxt.getDocHint("testHint1"), nullValue());
    ctxt.setDocHint("testHint1", "th1v1");
    assertThat((String) ctxt.getDocHint("testHint1"), is("th1v1"));
    ctxt.setDocHint("testHint1", "th1v2");
    assertThat((String) ctxt.getDocHint("testHint1"), is("th1v2"));

    assertThat(ctxt.getDocHint("testHint2"), nullValue());
    ctxt.setDocHint("testHint2", "th2v1");
    assertThat((String) ctxt.getDocHint("testHint2"), is("th2v1"));
    assertThat((String) ctxt.getDocHint("testHint1"), is("th1v2"));

    verify(handler);
  }
}

代码示例来源:origin: geotools/geotools

context.setDocHint(ZoomContext.HINT_ID, getZoomContext(root.map("grid")));

代码示例来源:origin: org.geotools/gt-ysld

context.setDocHint(ZoomContext.HINT_ID, getZoomContext(root.map("grid")));

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com