/** * Return the prefix associated with the given namespace name by * looking thru all the namespace declarations that are in scope. * * @param uri the namespace name for whom a declared prefix is desired * @return the prefix or null if namespace name not found */ public synchronized String getPrefix(String uri) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getUri().equals(uri)) { return nsd.getPrefix(); } } } return null; }
/** * Return the prefix associated with the given namespace name by * looking thru all the namespace declarations that are in scope. * * @param uri the namespace name for whom a declared prefix is desired * @return the prefix or null if namespace name not found */ public synchronized String getPrefix(String uri) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getUri().equals(uri)) { return nsd.getPrefix(); } } } return null; }
/** * Return the prefix associated with the given namespace name by * looking thru all the namespace declarations that are in scope. * * @param uri the namespace name for whom a declared prefix is desired * @return the prefix or null if namespace name not found */ public synchronized String getPrefix(String uri) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getUri().equals(uri)) { return nsd.getPrefix(); } } } return null; }
/** * Return the prefix associated with the given namespace name by * looking thru all the namespace declarations that are in scope. * * @param uri the namespace name for whom a declared prefix is desired * @return the prefix or null if namespace name not found */ public synchronized String getPrefix(String uri) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getUri().equals(uri)) { return nsd.getPrefix(); } } } return null; }
/** * Return the namespace name associated with the given prefix by * looking thru all the namespace declarations that are in scope. * * @param prefix the prefix for whom a declared namespace name is desired * @return the namespace name or null if prefix not found */ public synchronized String getURI(String prefix) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getPrefix().equals(prefix)) { return nsd.getUri(); } } } return null; }
/** * Return the namespace name associated with the given prefix by * looking thru all the namespace declarations that are in scope. * * @param prefix the prefix for whom a declared namespace name is desired * @return the namespace name or null if prefix not found */ public synchronized String getURI(String prefix) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getPrefix().equals(prefix)) { return nsd.getUri(); } } } return null; }
/** * Return the namespace name associated with the given prefix by * looking thru all the namespace declarations that are in scope. * * @param prefix the prefix for whom a declared namespace name is desired * @return the namespace name or null if prefix not found */ public synchronized String getURI(String prefix) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getPrefix().equals(prefix)) { return nsd.getUri(); } } } return null; }
/** * Return the namespace name associated with the given prefix by * looking thru all the namespace declarations that are in scope. * * @param prefix the prefix for whom a declared namespace name is desired * @return the namespace name or null if prefix not found */ public synchronized String getURI(String prefix) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getPrefix().equals(prefix)) { return nsd.getUri(); } } } return null; }
/** * Return the namespace name associated with the given prefix by * looking thru all the namespace declarations that are in scope. * * @param prefix the prefix for whom a declared namespace name is desired * @return the namespace name or null if prefix not found */ public synchronized String getURI(String prefix) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getPrefix().equals(prefix)) { return nsd.getUri(); } } } return null; }
/** * Return the prefix associated with the given namespace name by * looking thru all the namespace declarations that are in scope. * * @param URI the namespace name for whom a declared prefix is desired * @return the prefix or null if namespace name not found */ public synchronized String getPrefix(String uri) { for (int i = size - 1; i >= 0; i--) { List<NSDecl> scope = stack.get(i); ListIterator<NSDecl> lsIterator = scope.listIterator(); while (lsIterator.hasNext()) { NSDecl nsd = lsIterator.next(); if (nsd.getUri().equals(uri)) { return nsd.getPrefix(); } } } return null; }