/** * 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)); }
public Node getFirstChild() { return getChildNodes().item(0); }
public final Document createDocument() { return (Document) NodeImpl.build(createDocumentImpl()); }
/** * This function delegates to the native method <code>normalize</code> in * XMLParserImpl. */ public void normalize() { XMLParserImpl.normalize(this.getJsObject()); }
@Test public void testSomeMethod() { new NonStrictExpectations(ServiceFactory.class) {{ ServiceFactory.getImpl(Node.class); result = new NodeImpl(); }}; // Call tested code... }
/** * 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>getNamespaceURI</code> * in XMLParserImpl. */ public String getNamespaceURI() { return XMLParserImpl.getNamespaceURI(this.getJsObject()); }
return new TextImpl(node); default: return new NodeImpl(node);
public Document getOwnerDocument() { return (Document) NodeImpl.build(XMLParserImpl.getOwnerDocument(this.getJsObject())); }
/** * 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>hasChildNodes</code> * in XMLParserImpl. */ public boolean hasChildNodes() { return XMLParserImpl.hasChildNodes(this.getJsObject()); }
ArrayList<Point> points = new ArrayList<Point>(); points.add(new VertexImpl()); points.add(new NodeImpl());
public Node getLastChild() { return getChildNodes().item(getChildNodes().getLength() - 1); }
public Node getPreviousSibling() { return NodeImpl.build(XMLParserImpl.getPreviousSibling(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>hasAttributes</code> * in XMLParserImpl. */ public boolean hasAttributes() { return XMLParserImpl.hasAttributes(this.getJsObject()); }
return new TextImpl(node); default: return new NodeImpl(node);
public Node getLastChild() { return getChildNodes().item(getChildNodes().getLength() - 1); }
public Node getNextSibling() { return NodeImpl.build(XMLParserImpl.getNextSibling(this.getJsObject())); }
/** * 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)); }