@Override public String getNodeValue() throws DOMException { return original_.getNodeValue(); }
/** * The value of this node, depending on its type; see the table above. When it is defined to be * <code>null</code>, setting it has no effect. * * @throws DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. * @throws DOMException DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit * in a <code>DOMString</code> variable on the implementation platform. */ public String getNodeValue() throws DOMException { return document.getNodeValue(); }
/** * @inheritDoc */ public String getNodeValue() throws DOMException { return dom.getNodeValue(); }
/** * The value of this node, depending on its type; see the table above. When it is defined to be * <code>null</code>, setting it has no effect. * * @throws DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. * @throws DOMException DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit * in a <code>DOMString</code> variable on the implementation platform. */ public String getNodeValue() throws DOMException { return document.getNodeValue(); }
@Override public String getNodeValue() throws DOMException { return original_.getNodeValue(); }
public String getNodeValue() throws DOMException { return document.getNodeValue(); }
public String getNodeValue() throws DOMException { return this.doc.getNodeValue(); }
public String getNodeValue() throws DOMException { return document.getNodeValue(); }
@Override public String getNodeValue() throws DOMException { return document.getNodeValue(); }
public String getNodeValue() throws DOMException { return document.getNodeValue(); }
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; String documentValue; doc = (Document) load("staff", false); documentValue = doc.getNodeValue(); assertNull("documentNodeValueNull", documentValue); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; String documentValue; doc = (Document) load("hc_staff", false); documentValue = doc.getNodeValue(); assertNull("documentNodeValue", documentValue); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document newNode; String newValue; newNode = (Document) load("staff", true); newValue = newNode.getNodeValue(); assertNull("initiallyNull", newValue); newNode.setNodeValue("This should have no effect"); newValue = newNode.getNodeValue(); assertNull("nullAfterAttemptedChange", newValue); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document newNode; String newValue; newNode = (Document) load("hc_staff", true); newValue = newNode.getNodeValue(); assertNull("initiallyNull", newValue); newNode.setNodeValue("This should have no effect"); newValue = newNode.getNodeValue(); assertNull("nullAfterAttemptedChange", newValue); } /**
@Override public void serialize( Options options, Writer writer, @Optional Object object ) { Document xmlDocument = toXml( options, object ); if( xmlDocument == null ) { return; } try { // We want plain text nodes to be serialized without surrounding elements if( xmlDocument.getNodeType() == Node.TEXT_NODE ) { writer.write( xmlDocument.getNodeValue() ); } else { xmlFactories.serializationTransformer().transform( new DOMSource( xmlDocument ), new StreamResult( writer ) ); } } catch( IOException ex ) { throw new UncheckedIOException( ex ); } catch( TransformerException ex ) { throw new SerializationException( "Unable to transform XML Document to String", ex ); } }
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { String namespaceURI = "http://www.ecommerce.org/schema"; String qualifiedName = "y:x"; Document doc; DocumentType docType = null; DOMImplementation domImpl; Document aNewDoc; String nodeName; String nodeValue; doc = (Document) load("staffNS", false); domImpl = doc.getImplementation(); aNewDoc = domImpl.createDocument(namespaceURI, qualifiedName, docType); nodeName = aNewDoc.getNodeName(); nodeValue = aNewDoc.getNodeValue(); assertEquals("nodeName", "#document", nodeName); assertNull("nodeValue", nodeValue); } /**