public OutTransformWriter(XMLStreamWriter writer, Map<String, String> outEMap, Map<String, String> append, List<String> dropEls, Map<String, String> outAMap, boolean attributesToElements, String defaultNamespace) { super(writer); elementsMap = new QNamesMap(outEMap == null ? 0 : outEMap.size()); attributesMap = new QNamesMap(outAMap == null ? 0 : outAMap.size()); TransformUtils.convertToQNamesMap(outEMap, elementsMap, nsMap); TransformUtils.convertToQNamesMap(outAMap, attributesMap, null); TransformUtils.convertToMapOfElementProperties(append, appendMap); dropElements = XMLUtils.convertStringsToQNames(dropEls); this.attributesToElements = attributesToElements; namespaceContext = new DelegatingNamespaceContext( writer.getNamespaceContext(), nsMap); this.defaultNamespace = defaultNamespace; }
public OutTransformWriter(XMLStreamWriter writer, Map<String, String> outEMap, Map<String, String> append, List<String> dropEls, Map<String, String> outAMap, boolean attributesToElements, String defaultNamespace) { super(writer); elementsMap = new QNamesMap(outEMap == null ? 0 : outEMap.size()); attributesMap = new QNamesMap(outAMap == null ? 0 : outAMap.size()); TransformUtils.convertToQNamesMap(outEMap, elementsMap, nsMap); TransformUtils.convertToQNamesMap(outAMap, attributesMap, null); TransformUtils.convertToMapOfElementProperties(append, appendMap); dropElements = XMLUtils.convertStringsToQNames(dropEls); this.attributesToElements = attributesToElements; namespaceContext = new DelegatingNamespaceContext( writer.getNamespaceContext(), nsMap); this.defaultNamespace = defaultNamespace; }
public OutTransformWriter(XMLStreamWriter writer, Map<String, String> outEMap, Map<String, String> append, List<String> dropEls, Map<String, String> outAMap, boolean attributesToElements, String defaultNamespace) { super(writer); elementsMap = new QNamesMap(outEMap == null ? 0 : outEMap.size()); attributesMap = new QNamesMap(outAMap == null ? 0 : outAMap.size()); TransformUtils.convertToQNamesMap(outEMap, elementsMap, nsMap); TransformUtils.convertToQNamesMap(outAMap, attributesMap, null); TransformUtils.convertToMapOfElementProperties(append, appendMap); dropElements = XMLUtils.convertStringsToQNames(dropEls); this.attributesToElements = attributesToElements; namespaceContext = new DelegatingNamespaceContext( writer.getNamespaceContext(), nsMap); this.defaultNamespace = defaultNamespace; }