Documentation implements IDocumentation { @Override public String getStringContent() { Node firstChild = documentation.getDomNode().getFirstChild(); if(firstChild != null && firstChild.getNodeType() == Node.TEXT_NODE) { return firstChild.getNodeValue(); } else { return null; } } Documentation(TDocumentation wrappedDocumentation); List<Node> getDocumentationElements(); @Override String getStringContent(); Element addDocumentationElement(QName name); Element addDocumentationElement(String namespaceURI, String localName); @Override void setStringContent(String content);  }
@Test public void testGetStringContent() throws Exception { assertEquals(null, documentation.getStringContent()); }