private void processComment(Comment node) throws DOMException, IOException { xml.comment(node.getNodeValue(), true); }
/** * Retrieves a String representation of the comment being stored * * @return String representation of the comment being stored */ public String getStringValue() { return _value.getNodeValue(); }
private boolean isCommentEqual(Comment control, Comment test) { if (!isStringEqual(control.getNodeValue(), test.getNodeValue())) { return false; } return true; }
private boolean isCommentEqual(Comment control, Comment test) { if (!isStringEqual(control.getNodeValue(), test.getNodeValue())) { return false; } return true; }
private boolean isCommentEqual(Comment control, Comment test) { if (!isStringEqual(control.getNodeValue(), test.getNodeValue())) { return false; } return true; }
private boolean isCommentEqual(Comment control, Comment test) { if (!isStringEqual(control.getNodeValue(), test.getNodeValue())) { return false; } return true; }
public static void toXmlImpl(Env env, StringBuilder sb, Comment node) { sb.append("<!--"); sb.append(node.getNodeValue()); sb.append("-->"); }
/** * Formats a comment for {@link #getShortString}. * * @param sb the builder to append to * @param aNode the comment * * @since XMLUnit 2.4.0 */ protected void appendComment(StringBuilder sb, Comment aNode) { sb.append("<!--") .append(aNode.getNodeValue()) .append("-->"); }
protected void write(Comment node) { printWriter.print("<!--"); //$NON-NLS-1$ String comment = node.getNodeValue(); if (comment != null && comment.length() > 0) { printWriter.print(comment); } printWriter.print("-->"); //$NON-NLS-1$ printWriter.flush(); } }
protected void write(Comment node) { printWriter.print("<!--"); //$NON-NLS-1$ String comment = node.getNodeValue(); if (comment != null && comment.length() > 0) { printWriter.print(comment); } printWriter.print("-->"); //$NON-NLS-1$ printWriter.flush(); } }
protected void write(Comment node) { printWriter.print("<!--"); //$NON-NLS-1$ String comment = node.getNodeValue(); if (comment != null && comment.length() > 0) { printWriter.print(comment); } printWriter.print("-->"); //$NON-NLS-1$ printWriter.flush(); } }
protected void write(Comment comment) throws java.io.IOException { // Does not need to have anything escaped (no printXML). out.write("<!--"); String text = comment.getNodeValue(); // A comment is not allow to have "--" inside of it. int pos = text.indexOf("--"); while (pos >= 0) { out.write(text.substring(0, pos)); out.write("--"); text = text.substring(pos+2, text.length()); pos = text.indexOf("--"); } out.write(text); out.write("-->"); }
protected void write(Comment node) { printWriter.print("<!--"); //$NON-NLS-1$ String comment = node.getNodeValue(); if (comment != null && comment.length() > 0) { normalizeAndPrint(comment, false); } printWriter.print("-->"); //$NON-NLS-1$ printWriter.flush(); } }
public void comment(Comment node) throws XNIException { /** Create new Comment node for the target. */ append(fDocument.createComment(node.getNodeValue())); }
public void comment(Comment node) throws XNIException { /** Create new Comment node for the target. */ append(fDocument.createComment(node.getNodeValue())); }
public void comment(Comment node) throws XNIException { /** Create new Comment node for the target. */ append(fDocument.createComment(node.getNodeValue())); }
public static boolean assertIsCollection(Node element) { Comment firstComment = (Comment) SoapuiXmlUtils.getFirstChildByType(element, Node.COMMENT_NODE); return ((firstComment != null) && (firstComment.getNodeValue().indexOf("Zero or more repetitions") != -1)); }
private void processComment(Comment node) throws DOMException, IOException { xml.comment(node.getNodeValue(), true); }
String ecmaValue() { // TODO See ECMA 357 Section 9.1 if (isTextType()) { return ((org.w3c.dom.Text)dom).getData(); } else if (isAttributeType()) { return ((org.w3c.dom.Attr)dom).getValue(); } else if (isProcessingInstructionType()) { return ((org.w3c.dom.ProcessingInstruction)dom).getData(); } else if (isCommentType()) { return ((org.w3c.dom.Comment)dom).getNodeValue(); } else if (isElementType()) { throw new RuntimeException("Unimplemented ecmaValue() for elements."); } else { throw new RuntimeException("Unimplemented for node " + dom); } }
public void visitComment(Comment comment) { printIndent(); print("<!--"); //$NON-NLS-1$ print(comment.getNodeValue()); println("-->"); //$NON-NLS-1$ }