/** * Deeply exports this node to the given document. * @param n The clone node. * @param d The destination document. */ protected Node deepExport(Node n, Document d) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "import.document", new Object[] {}); }
/** * Exports this node to the given document. * @param n The clone node. * @param d The destination document. */ protected Node export(Node n, Document d) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "import.document", new Object[] {}); }
/** * Deeply exports this node to the given document. * @param n The clone node. * @param d The destination document. */ protected Node deepExport(Node n, Document d) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "import.document", new Object[] {}); }
/** * Exports this node to the given document. * @param n The clone node. * @param d The destination document. */ protected Node export(Node n, Document d) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "import.document", new Object[] {}); }
/** * Exports this node to the given document. * @param n The clone node. * @param d The destination document. */ protected Node export(Node n, Document d) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "import.document", new Object[] {}); }
/** * Deeply exports this node to the given document. * @param n The clone node. * @param d The destination document. */ protected Node deepExport(Node n, Document d) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "import.document", new Object[] {}); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Document#setXmlVersion(String)}. */ public void setXmlVersion(String v) throws DOMException { if (v == null || !v.equals(XMLConstants.XML_VERSION_10) && !v.equals(XMLConstants.XML_VERSION_11)) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "xml.version", new Object[] { v }); } xmlVersion = v; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Document#setXmlVersion(String)}. */ public void setXmlVersion(String v) throws DOMException { if (v == null || !v.equals(XMLConstants.XML_VERSION_10) && !v.equals(XMLConstants.XML_VERSION_11)) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "xml.version", new Object[] { v }); } xmlVersion = v; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Document#setXmlVersion(String)}. */ public void setXmlVersion(String v) throws DOMException { if (v == null || !v.equals(XMLConstants.XML_VERSION_10) && !v.equals(XMLConstants.XML_VERSION_11)) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "xml.version", new Object[] { v }); } xmlVersion = v; }
/** * Gets the value of the given parameter. */ public Object getParameter(String name) { if (DOMConstants.DOM_ERROR_HANDLER_PARAM.equals(name)) { return errorHandler; } Integer index = (Integer) booleanParamIndexes.get(name); if (index == null) { throw createDOMException (DOMException.NOT_FOUND_ERR, "domconfig.param.not.found", new Object[] { name }); } return booleanParamValues[index] ? Boolean.TRUE : Boolean.FALSE; }
/** * Gets the value of the given parameter. */ public Object getParameter(String name) { if (DOMConstants.DOM_ERROR_HANDLER_PARAM.equals(name)) { return errorHandler; } Integer index = (Integer) booleanParamIndexes.get(name); if (index == null) { throw createDOMException (DOMException.NOT_FOUND_ERR, "domconfig.param.not.found", new Object[] { name }); } return booleanParamValues[index] ? Boolean.TRUE : Boolean.FALSE; }
/** * Gets the value of the given parameter. */ public Object getParameter(String name) { if (DOMConstants.DOM_ERROR_HANDLER_PARAM.equals(name)) { return errorHandler; } Integer index = (Integer) booleanParamIndexes.get(name); if (index == null) { throw createDOMException (DOMException.NOT_FOUND_ERR, "domconfig.param.not.found", new Object[] { name }); } return booleanParamValues[index.intValue()] ? Boolean.TRUE : Boolean.FALSE; }
/** * Creates a new tree walker. */ public static TreeWalker createTreeWalker(AbstractDocument doc, Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) { if (root == null) { throw doc.createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.root", null); } return new DOMTreeWalker(root, whatToShow, filter, entityReferenceExpansion); }
/** * Creates a new tree walker. */ public static TreeWalker createTreeWalker(AbstractDocument doc, Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) { if (root == null) { throw doc.createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.root", null); } return new DOMTreeWalker(root, whatToShow, filter, entityReferenceExpansion); }
/** * Creates a new tree walker. */ public static TreeWalker createTreeWalker(AbstractDocument doc, Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) { if (root == null) { throw doc.createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.root", null); } return new DOMTreeWalker(root, whatToShow, filter, entityReferenceExpansion); }
/** * Creates a new node iterator. */ public NodeIterator createNodeIterator(AbstractDocument doc, Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException { if (root == null) { throw doc.createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.root", null); } NodeIterator result = new DOMNodeIterator(doc, root, whatToShow, filter, entityReferenceExpansion); if (iterators == null) { iterators = new LinkedList(); } iterators.add(result); return result; }
/** * Creates a new node iterator. */ public NodeIterator createNodeIterator(AbstractDocument doc, Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException { if (root == null) { throw doc.createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.root", null); } NodeIterator result = new DOMNodeIterator(doc, root, whatToShow, filter, entityReferenceExpansion); if (iterators == null) { iterators = new LinkedList(); } iterators.add(result); return result; }
/** * 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); }