org.openmrs.Obs.setValueAsString()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(225)

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

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());

相关文章