本文整理了Java中org.n52.shetland.ogc.ows.extension.Extension.setValue()
方法的一些代码示例,展示了Extension.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Extension.setValue()
方法的具体详情如下:
包路径:org.n52.shetland.ogc.ows.extension.Extension
类名称:Extension
方法名:setValue
暂无
代码示例来源:origin: org.n52.arctic-sea/svalbard-json-common
protected Extension<SweAbstractDataComponent> parseExtension(JsonNode node) {
if (node.isObject() && node.has(JSONConstants.DEFINITION) && node.has(JSONConstants.VALUE)) {
if (node.path("value").isBoolean()) {
return new SwesExtension<SweAbstractDataComponent>()
.setDefinition(node.path(JSONConstants.DEFINITION).asText())
.setValue(new SweBoolean().setValue(node.path(JSONConstants.VALUE).asBoolean()));
} else if (node.path(JSONConstants.VALUE).isTextual()) {
return new SwesExtension<SweAbstractDataComponent>()
.setDefinition(node.path(JSONConstants.DEFINITION).asText())
.setValue(new SweText().setValue(node.path(JSONConstants.VALUE).asText()));
}
}
return null;
}
代码示例来源:origin: org.n52.sensorweb.sos/split-and-merge
private void checkGetObservationRequest(AbstractObservationRequest request) {
if (request.isSetResultModel()) {
if (OmConstants.OBS_TYPE_SWE_ARRAY_OBSERVATION.equals(request.getResultModel())) {
request.addExtension(new SwesExtension<SweBoolean>()
.setDefinition(Sos2Constants.Extensions.MergeObservationsIntoDataArray.name())
.setValue((SweBoolean) new SweBoolean().setValue(true)
.setDefinition(Sos2Constants.Extensions.MergeObservationsIntoDataArray.name())));
}
}
}
代码示例来源:origin: 52North/SOS
private void checkGetObservationRequest(AbstractObservationRequest request) {
if (request.isSetResultModel()) {
if (OmConstants.OBS_TYPE_SWE_ARRAY_OBSERVATION.equals(request.getResultModel())) {
request.addExtension(new SwesExtension<SweBoolean>()
.setDefinition(Sos2Constants.Extensions.MergeObservationsIntoDataArray.name())
.setValue((SweBoolean) new SweBoolean().setValue(true)
.setDefinition(Sos2Constants.Extensions.MergeObservationsIntoDataArray.name())));
}
}
}
代码示例来源:origin: org.n52.sensorweb.sos/binding-register
if (!Strings.isNullOrEmpty(isType) && Boolean.parseBoolean(isType)) {
SwesExtension<SweBoolean> extension = new SwesExtension<SweBoolean>();
extension.setDefinition("isType").setValue(new SweBoolean().setValue(true));
request.addExtension(extension);
isTypeRequest = true;
代码示例来源:origin: 52North/SOS
if (!Strings.isNullOrEmpty(isType) && Boolean.parseBoolean(isType)) {
SwesExtension<SweBoolean> extension = new SwesExtension<SweBoolean>();
extension.setDefinition("isType").setValue(new SweBoolean().setValue(true));
request.addExtension(extension);
isTypeRequest = true;
代码示例来源:origin: 52North/SOS
extensions.addExtension(new SwesExtension<SweBoolean>()
.setDefinition(Sos2Constants.Extensions.MergeObservationsIntoDataArray.name())
.setValue((SweBoolean) new SweBoolean()
.setValue(getProfileHandler().getActiveProfile()
.isMergeValues())
代码示例来源:origin: org.n52.sensorweb.sos/core-v20
extensions.addExtension(new SwesExtension<SweBoolean>()
.setDefinition(Sos2Constants.Extensions.MergeObservationsIntoDataArray.name())
.setValue((SweBoolean) new SweBoolean()
.setValue(getProfileHandler().getActiveProfile()
.isMergeValues())
内容来源于网络,如有侵权,请联系作者删除!