{@inheritDoc}
(final String indent, final boolean tagBefore, final PrintWriter printWriter)
| 73 | * {@inheritDoc} |
| 74 | */ |
| 75 | @Override |
| 76 | protected boolean printXml(final String indent, final boolean tagBefore, final PrintWriter printWriter) { |
| 77 | final boolean hasChildren = domDocumentFragment_.getFirstChild() != null; |
| 78 | |
| 79 | if (tagBefore) { |
| 80 | printWriter.print("\r\n"); |
| 81 | printWriter.print(indent); |
| 82 | } |
| 83 | |
| 84 | printWriter.print('<'); |
| 85 | printOpeningTagContentAsXml(printWriter); |
| 86 | |
| 87 | if (hasChildren) { |
| 88 | printWriter.print(">"); |
| 89 | final boolean tag = domDocumentFragment_.printChildrenAsXml(indent, tagBefore, printWriter); |
| 90 | if (tag) { |
| 91 | printWriter.print("\r\n"); |
| 92 | printWriter.print(indent); |
| 93 | } |
| 94 | printWriter.print("</"); |
| 95 | printWriter.print(getTagName()); |
| 96 | printWriter.print(">"); |
| 97 | } |
| 98 | else if (isEmptyXmlTagExpanded()) { |
| 99 | printWriter.print("></"); |
| 100 | printWriter.print(getTagName()); |
| 101 | printWriter.print(">"); |
| 102 | } |
| 103 | else { |
| 104 | printWriter.print("/>"); |
| 105 | } |
| 106 | |
| 107 | return true; |
| 108 | } |
| 109 | } |
nothing calls this directly
no test coverage detected