本文整理了Java中org.openmrs.Obs.setValueAsString()
方法的一些代码示例,展示了Obs.setValueAsString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Obs.setValueAsString()
方法的具体详情如下:
包路径:org.openmrs.Obs
类名称:Obs
方法名:setValueAsString
[英]Sets the value for the obs from a string depending on the datatype of the question concept
[中]根据问题概念的数据类型,设置字符串中obs的值
代码示例来源:origin: openmrs/openmrs-core
/**
* @see Obs#setValueAsString(String)
*/
@Test(expected = RuntimeException.class)
public void setValueAsString_shouldFailIfTheValueOfTheStringIsNull() throws Exception {
Obs obs = new Obs();
obs.setValueAsString(null);
}
代码示例来源:origin: openmrs/openmrs-core
/**
* @see Obs#setValueAsString(String)
*/
@Test(expected = RuntimeException.class)
public void setValueAsString_shouldFailIfTheValueOfTheStringIsEmpty() throws Exception {
Obs obs = new Obs();
obs.setValueAsString("");
}
代码示例来源:origin: openmrs/openmrs-module-webservices.rest
obs.setValueAsString(value.toString());
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
if (value != null) {
try {
obs.setValueAsString(value.toString());
内容来源于网络,如有侵权,请联系作者删除!