Lines Matching refs:prefixSet
408 // prefixSet to collect prefixes that are written before writing inscope namespaces
409 Set<String> prefixSet = inscope ? new HashSet<String>() : Collections.<String>emptySet();
414 item = writeNamespaceAttributes(item, writer, inscope, prefixSet);
417 writeInscopeNamespaces(writer, prefixSet);
430 * @param prefixSet: already written prefixes
432 private void writeInscopeNamespaces(XMLStreamWriter writer, Set<String> prefixSet) throws XMLStreamException {
436 if (!prefixSet.contains(key)) {
442 private int writeNamespaceAttributes(int item, XMLStreamWriter writer, boolean collectPrefixes, Set<String> prefixSet) throws XMLStreamException {
449 prefixSet.add("");
458 prefixSet.add(prefix);
466 prefixSet.add(prefix);
473 prefixSet.add("");