NamedAttrNodeMapImpl(final DomElement domNode, final boolean caseSensitive, final Map<String, DomAttr> attributes) { super(attributes); if (domNode == null) { throw new IllegalArgumentException(); } domNode_ = domNode; caseSensitive_ = caseSensitive; // register positions of attributes for (final String name : keySet()) { attrPositions_.add(name); } }
NamedAttrNodeMapImpl(final DomElement domNode, final boolean caseSensitive, final Map<String, DomAttr> attributes) { super(attributes); if (domNode == null) { throw new IllegalArgumentException(); } domNode_ = domNode; caseSensitive_ = caseSensitive; // register positions of attributes for (final String name : keySet()) { attrPositions_.add(name); } }
NamedAttrNodeMapImpl(final DomElement domNode, final boolean caseSensitive, final Map<String, DomAttr> attributes) { super(attributes); if (domNode == null) { throw new IllegalArgumentException(); } domNode_ = domNode; caseSensitive_ = caseSensitive; // register positions of attributes for (final String name : keySet()) { attrPositions_.add(name); } }
/** * Prints the content between "<" and ">" (or "/>") in the output of the tag name * and its attributes in XML format. * @param printWriter the writer to print in */ protected void printOpeningTagContentAsXml(final PrintWriter printWriter) { printWriter.print(getTagName()); for (final String name : attributes_.keySet()) { printWriter.print(" "); printWriter.print(name); printWriter.print("=\""); printWriter.print(StringEscapeUtils.escapeXml(attributes_.get(name).getNodeValue())); printWriter.print("\""); } }
/** * Prints the content between "<" and ">" (or "/>") in the output of the tag name * and its attributes in XML format. * @param printWriter the writer to print in */ protected void printOpeningTagContentAsXml(final PrintWriter printWriter) { printWriter.print(getTagName()); for (final String name : attributes_.keySet()) { printWriter.print(" "); printWriter.print(name); printWriter.print("=\""); printWriter.print(StringEscapeUtils.escapeXml(attributes_.get(name).getNodeValue())); printWriter.print("\""); } }
/** * Prints the content between "<" and ">" (or "/>") in the output of the tag name * and its attributes in XML format. * @param printWriter the writer to print in */ protected void printOpeningTagContentAsXml(final PrintWriter printWriter) { printWriter.print(getTagName()); for (final String name : attributes_.keySet()) { printWriter.print(" "); printWriter.print(name); printWriter.print("=\""); printWriter.print(StringEscapeUtils.escapeXml(attributes_.get(name).getNodeValue())); printWriter.print("\""); } }