private String getUriForPrefix(String prefix) { for (Triple t : pendingTag.namespaces) { if (prefix.equals(t.prefix)) { return t.uri; } } return inScopeNamespaces.getURIForPrefix(prefix, false); }
private String getDefaultNamespace() { for (Triple t : pendingTag.namespaces) { if (t.prefix == null || t.prefix.isEmpty()) { return t.uri; } } return inScopeNamespaces.getURIForPrefix("", true); }
private String getDefaultNamespace() { for (Triple t : pendingTag.namespaces) { if (t.prefix == null || t.prefix.isEmpty()) { return t.uri; } } return inScopeNamespaces.getURIForPrefix("", true); }
private String getUriForPrefix(String prefix) { for (Triple t : pendingTag.namespaces) { if (prefix.equals(t.prefix)) { return t.uri; } } return inScopeNamespaces.getURIForPrefix(prefix, false); }
private String getPrefixForUri(String uri) { for (Triple t : pendingTag.namespaces) { if (uri.equals(t.uri)) { return t.prefix == null ? "" : t.prefix; } } String setPrefix = getPrefix(uri); if (setPrefix != null) { return setPrefix; } Iterator<String> prefixes = inScopeNamespaces.iteratePrefixes(); while (prefixes.hasNext()) { String p = prefixes.next(); if (inScopeNamespaces.getURIForPrefix(p, false).equals(uri)) { return p; } } return ""; }
private String getPrefixForUri(String uri) { for (Triple t : pendingTag.namespaces) { if (uri.equals(t.uri)) { return t.prefix == null ? "" : t.prefix; } } String setPrefix = getPrefix(uri); if (setPrefix != null) { return setPrefix; } Iterator<String> prefixes = inScopeNamespaces.iteratePrefixes(); while (prefixes.hasNext()) { String p = prefixes.next(); if (inScopeNamespaces.getURIForPrefix(p, false).equals(uri)) { return p; } } return ""; }