本文整理了Java中org.geotools.ysld.parse.YamlParseContext.setDocHint()
方法的一些代码示例,展示了YamlParseContext.setDocHint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlParseContext.setDocHint()
方法的具体详情如下:
包路径:org.geotools.ysld.parse.YamlParseContext
类名称: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")));
内容来源于网络,如有侵权,请联系作者删除!