/** * This method gets the index item. * * @param index - the index to be retrieved * @return the item at this index * @see com.google.gwt.xml.client.NodeList#item(int) */ public Node item(int index) { return NodeImpl.build(XMLParserImpl.item(this.getJsObject(), index)); }
/** * This function delegates to the native method <code>setData</code> in * XMLParserImpl. */ public void setData(String data) { try { XMLParserImpl.setData(this.getJsObject(), data); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>substringData</code> * in XMLParserImpl. */ public String substringData(final int offset, final int count) { try { return XMLParserImpl.substringData(this.getJsObject(), offset, count); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_ACCESS_ERR, e, this); } } }
/** * This function delegates to the native method * <code>createCDATASection</code> in XMLParserImpl. */ public CDATASection createCDATASection(String data) { try { return (CDATASection) NodeImpl.build(XMLParserImpl.createCDATASection( this.getJsObject(), data)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_CHARACTER_ERR, e, this); } }
/** * This function delegates to the native method <code>createComment</code> * in XMLParserImpl. */ public Comment createComment(String data) { try { return (Comment) NodeImpl.build(XMLParserImpl.createComment( this.getJsObject(), data)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_CHARACTER_ERR, e, this); } }
/** * This function delegates to the native method * <code>createDocumentFragment</code> in XMLParserImpl. */ public DocumentFragment createDocumentFragment() { try { return (DocumentFragment) NodeImpl.build(XMLParserImpl.createDocumentFragment(this.getJsObject())); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_CHARACTER_ERR, e, this); } }
/** * This function delegates to the native method <code>removeNamedItem</code> * in XMLParserImpl. */ public Node removeNamedItem(String name) { try { return NodeImpl.build(XMLParserImpl.removeNamedItem(this.getJsObject(), name)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>createTextNode</code> * in XMLParserImpl. */ public Text createTextNode(String data) { try { return (Text) NodeImpl.build(XMLParserImpl.createTextNode( this.getJsObject(), data)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_CHARACTER_ERR, e, this); } }
/** * This function delegates to the native method <code>createElement</code> * in XMLParserImpl. */ public Element createElement(String tagName) { try { return (Element) NodeImpl.build(XMLParserImpl.createElement( this.getJsObject(), tagName)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_CHARACTER_ERR, e, this); } }
/** * This function delegates to the native method <code>splitText</code> in * XMLParserImpl. */ public Text splitText(int offset) { try { return (Text) NodeImpl.build(XMLParserImpl.splitText(this.getJsObject(), offset)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method * <code>createProcessingInstruction</code> in XMLParserImpl. */ public ProcessingInstruction createProcessingInstruction(String target, String data) { try { return (ProcessingInstruction) NodeImpl.build(XMLParserImpl.createProcessingInstruction( this.getJsObject(), target, data)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_CHARACTER_ERR, e, this); } }
/** * This function delegates to the native method <code>setData</code> in * XMLParserImpl. */ public void setData(String data) { try { XMLParserImpl.setData(this.getJsObject(), data); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_CHARACTER_ERR, e, this); } }
/** * This function delegates to the native method <code>appendData</code> in * XMLParserImpl. */ public void appendData(String arg) { try { XMLParserImpl.appendData(this.getJsObject(), arg); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>deleteData</code> in * XMLParserImpl. */ public void deleteData(int offset, int count) { try { XMLParserImpl.deleteData(this.getJsObject(), offset, count); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>replaceData</code> in * XMLParserImpl. */ public void replaceData(int offset, int count, String arg) { try { XMLParserImpl.replaceData(this.getJsObject(), offset, count, arg); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method * <code>getDocumentElement</code> in XMLParserImpl. */ public Element getDocumentElement() { return (Element) NodeImpl.build(XMLParserImpl.getDocumentElement(this.getJsObject())); }
/** * This function delegates to the native method * <code>getElementsByTagName</code> in XMLParserImpl. */ public NodeList getElementsByTagName(String tagName) { return new NodeListImpl(XMLParserImpl.getElementsByTagName( this.getJsObject(), tagName)); }
/** * This function delegates to the native method <code>setAttribute</code> in * XMLParserImpl. */ public void setAttribute(String name, String value) throws DOMNodeException { try { XMLParserImpl.setAttribute(this.getJsObject(), name, value); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } } }
/** * This function delegates to the native method <code>insertData</code> in * XMLParserImpl. */ public void insertData(int offset, String arg) { try { XMLParserImpl.insertData(this.getJsObject(), offset, arg); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } }
/** * This function delegates to the native method <code>getElementById</code> * in XMLParserImpl. */ public Element getElementById(String elementId) { return (Element) NodeImpl.build(XMLParserImpl.getElementById( this.getJsObject(), elementId)); }