public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; for (Node node : list) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (uri.equals(namespace.getURI())) { return namespace; } } } } else if (contentShadow instanceof Namespace) { Namespace namespace = (Namespace) contentShadow; if (uri.equals(namespace.getURI())) { return namespace; } } Element parent = getParent(); if (parent != null) { return parent.getNamespaceForURI(uri); } return null; } }
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; for (Node node : list) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (uri.equals(namespace.getURI())) { return namespace; } } } } else if (contentShadow instanceof Namespace) { Namespace namespace = (Namespace) contentShadow; if (uri.equals(namespace.getURI())) { return namespace; } } Element parent = getParent(); if (parent != null) { return parent.getNamespaceForURI(uri); } return null; } }
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else {
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else {
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else {
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else {
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else {
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else {
public Namespace getNamespaceForURI(String uri) { if ((uri == null) || (uri.length() <= 0)) { return Namespace.NO_NAMESPACE; } else if (uri.equals(getNamespaceURI())) { return getNamespace(); } else { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; for (Node node : list) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (uri.equals(namespace.getURI())) { return namespace; } } } } else if (contentShadow instanceof Namespace) { Namespace namespace = (Namespace) contentShadow; if (uri.equals(namespace.getURI())) { return namespace; } } Element parent = getParent(); if (parent != null) { return parent.getNamespaceForURI(uri); } return null; } }