/** * This function delegates to the native method <code>normalize</code> in * XMLParserImpl. */ public void normalize() { XMLParserImpl.normalize(this.getJsObject()); }
/** * This function delegates to the native method <code>getPrefix</code> in * XMLParserImpl. */ public String getPrefix() { return XMLParserImpl.getPrefix(this.getJsObject()); }
/** * This function delegates to the native method <code>getNamespaceURI</code> * in XMLParserImpl. */ public String getNamespaceURI() { return XMLParserImpl.getNamespaceURI(this.getJsObject()); }
/** * This function delegates to the native method <code>hasChildNodes</code> * in XMLParserImpl. */ public boolean hasChildNodes() { return XMLParserImpl.hasChildNodes(this.getJsObject()); }
/** * This function delegates to the native method <code>hasAttributes</code> * in XMLParserImpl. */ public boolean hasAttributes() { return XMLParserImpl.hasAttributes(this.getJsObject()); }
public short getNodeType() { return XMLParserImpl.getNodeType(this.getJsObject()); }
public String getNodeName() { return XMLParserImpl.getNodeName(this.getJsObject()); }
public String getNodeValue() { return XMLParserImpl.getNodeValue(this.getJsObject()); }
/** * This function delegates to the native method <code>cloneNode</code> in * XMLParserImpl. */ public Node cloneNode(boolean deep) { return NodeImpl.build(XMLParserImpl.cloneNode(this.getJsObject(), deep)); }
/** * This function delegates to the native method <code>setNodeValue</code> in * XMLParserImpl. */ public void setNodeValue(String nodeValue) { try { XMLParserImpl.setNodeValue(this.getJsObject(), nodeValue); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
public NamedNodeMap getAttributes() { return new NamedNodeMapImpl(XMLParserImpl.getAttributes(this.getJsObject())); }
public Document getOwnerDocument() { return (Document) NodeImpl.build(XMLParserImpl.getOwnerDocument(this.getJsObject())); }
public Node getPreviousSibling() { return NodeImpl.build(XMLParserImpl.getPreviousSibling(this.getJsObject())); }
public NodeList getChildNodes() { return new NodeListImpl(XMLParserImpl.getChildNodes(this.getJsObject())); }
public Node getNextSibling() { return NodeImpl.build(XMLParserImpl.getNextSibling(this.getJsObject())); }
public Node getParentNode() { return NodeImpl.build(XMLParserImpl.getParentNode(this.getJsObject())); }
/** * This function delegates to the native method <code>removeChild</code> in * XMLParserImpl. */ public Node removeChild(Node oldChild) { try { final JavaScriptObject oldChildJs = ((DOMItem) oldChild).getJsObject(); final JavaScriptObject removeChildResults = XMLParserImpl.removeChild( this.getJsObject(), oldChildJs); return NodeImpl.build(removeChildResults); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>appendChild</code> in * XMLParserImpl. */ public Node appendChild(Node newChild) { try { final JavaScriptObject newChildJs = ((DOMItem) newChild).getJsObject(); final JavaScriptObject appendChildResults = XMLParserImpl.appendChild( this.getJsObject(), newChildJs); return NodeImpl.build(appendChildResults); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>replaceChild</code> in * XMLParserImpl. */ public Node replaceChild(Node newChild, Node oldChild) { try { final JavaScriptObject newChildJs = ((DOMItem) newChild).getJsObject(); final JavaScriptObject oldChildJs = ((DOMItem) oldChild).getJsObject(); final JavaScriptObject replaceChildResults = XMLParserImpl.replaceChild( this.getJsObject(), newChildJs, oldChildJs); return NodeImpl.build(replaceChildResults); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>insertBefore</code> in * XMLParserImpl. */ public Node insertBefore(Node newChild, Node refChild) { try { final JavaScriptObject newChildJs = ((DOMItem) newChild).getJsObject(); final JavaScriptObject refChildJs; if (refChild != null) { refChildJs = ((DOMItem) refChild).getJsObject(); } else { refChildJs = null; } final JavaScriptObject insertBeforeResults = XMLParserImpl.insertBefore( this.getJsObject(), newChildJs, refChildJs); return NodeImpl.build(insertBeforeResults); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }