Java Code Examples for org.hl7.fhir.utilities.xhtml.XhtmlNode#getValueAsString()
The following examples show how to use
org.hl7.fhir.utilities.xhtml.XhtmlNode#getValueAsString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseNarrative.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public String getDivAsString() { XhtmlNode div = getDiv(); if (div != null && !div.isEmpty()) { return div.getValueAsString(); } else { return null; } }
Example 2
Source File: BaseNarrative.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public String getDivAsString() { XhtmlNode div = getDiv(); if (div != null && !div.isEmpty()) { return div.getValueAsString(); } else { return null; } }
Example 3
Source File: BaseNarrative.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public String getDivAsString() { XhtmlNode div = getDiv(); if (div != null && !div.isEmpty()) { return div.getValueAsString(); } else { return null; } }
Example 4
Source File: BaseNarrative.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public String getDivAsString() { XhtmlNode div = getDiv(); if (div != null && !div.isEmpty()) { return div.getValueAsString(); } else { return null; } }
Example 5
Source File: BaseNarrative.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public String getDivAsString() { XhtmlNode div = getDiv(); if (div != null && !div.isEmpty()) { return div.getValueAsString(); } else { return null; } }
Example 6
Source File: XhtmlNodeTest.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
@Test public void testParseXhtmlQualified() { XhtmlNode node = new XhtmlNode(); node.setValueAsString("<xhtml:div xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">" + "<xhtml:img src=\"http://pbs.twimg.com/profile_images/544507893991485440/r_vo3uj2_bigger.png\" alt=\"Twitter Avatar\"/>" + "@fhirabend" + "</xhtml:div>"); String output = node.getValueAsString(); ourLog.info(output); Assertions.assertEquals("<div xmlns=\"http://www.w3.org/1999/xhtml\"><img src=\"http://pbs.twimg.com/profile_images/544507893991485440/r_vo3uj2_bigger.png\" alt=\"Twitter Avatar\"/>@fhirabend</div>", output); }