/** * 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>getDocumentElement</code> in XMLParserImpl. */ public Element getDocumentElement() { return (Element) NodeImpl.build(XMLParserImpl.getDocumentElement(this.getJsObject())); }
public final Document parse(String contents) { try { return (Document) NodeImpl.build(parseImpl(contents)); } catch (JavaScriptException e) { throw new DOMParseException(contents, e); } }
/** * 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)); }
/** * 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>getAttributeNode</code> * in XMLParserImpl. */ public Attr getAttributeNode(String tagName) { return (Attr) NodeImpl.build(XMLParserImpl.getAttributeNode( this.getJsObject(), tagName)); }
/** * This method gets the item at the index position. * * @param name - the name of the item * @return the item retrieved from the name */ public Node getNamedItem(String name) { return NodeImpl.build(XMLParserImpl.getNamedItem(this.getJsObject(), name)); }
public Document getOwnerDocument() { return (Document) NodeImpl.build(XMLParserImpl.getOwnerDocument(this.getJsObject())); }
public Node getPreviousSibling() { return NodeImpl.build(XMLParserImpl.getPreviousSibling(this.getJsObject())); }
/** * 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>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>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>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>importNode</code> in * XMLParserImpl. */ public Node importNode(Node importedNode, boolean deep) { try { return NodeImpl.build(XMLParserImpl.importNode(this.getJsObject(), ((DOMItem) importedNode).getJsObject(), deep)); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_STATE_ERR, e, this); } } }
/** * This function delegates to the native method <code>setNamedItem</code> in * XMLParserImpl. */ public Node setNamedItem(Node arg) { try { return NodeImpl.build(XMLParserImpl.setNamedItem(this.getJsObject(), ((DOMItem) arg).getJsObject())); } catch (JavaScriptException e) { throw new DOMNodeException(DOMException.INVALID_MODIFICATION_ERR, e, this); } } }