/** * Implements the behavior of Document.createElementNS() for this * DOM implementation. */ public Element createElementNS(AbstractDocument document, String namespaceURI, String qualifiedName) { if (SVGConstants.SVG_NAMESPACE_URI.equals(namespaceURI)) { String name = DOMUtilities.getLocalName(qualifiedName); ElementFactory ef = (ElementFactory)factories.get(name); if (ef != null) return ef.create(DOMUtilities.getPrefix(qualifiedName), document); throw document.createDOMException (DOMException.NOT_FOUND_ERR, "invalid.element", new Object[] { namespaceURI, qualifiedName }); } return super.createElementNS(document, namespaceURI, qualifiedName); }
/** * Implements the behavior of Document.createElementNS() for this * DOM implementation. */ public Element createElementNS(AbstractDocument document, String namespaceURI, String qualifiedName) { if (SVGConstants.SVG_NAMESPACE_URI.equals(namespaceURI)) { String name = DOMUtilities.getLocalName(qualifiedName); ElementFactory ef = factories.get(name); if (ef != null) return ef.create(DOMUtilities.getPrefix(qualifiedName), document); throw document.createDOMException (DOMException.NOT_FOUND_ERR, "invalid.element", new Object[] { namespaceURI, qualifiedName }); } return super.createElementNS(document, namespaceURI, qualifiedName); }
/** * Implements the behavior of Document.createElementNS() for this * DOM implementation. */ public Element createElementNS(AbstractDocument document, String namespaceURI, String qualifiedName) { if (SVGConstants.SVG_NAMESPACE_URI.equals(namespaceURI)) { String name = DOMUtilities.getLocalName(qualifiedName); ElementFactory ef = (ElementFactory)factories.get(name); if (ef != null) return ef.create(DOMUtilities.getPrefix(qualifiedName), document); throw document.createDOMException (DOMException.NOT_FOUND_ERR, "invalid.element", new Object[] { namespaceURI, qualifiedName }); } return super.createElementNS(document, namespaceURI, qualifiedName); }