Code example for Node

Methods: appendChild, getOwnerDocument

0
     * of the returned <code>Node</code>. 
     * @return a <code>DOMNode</code> object 
     */     
    public DOMNode appendChild (DOMNode newChild) throws DOMException {
        setModified(true); 
        return _factory.createDOMNode(
            _impl.appendChild (newChild.getImpl()) ); 
    } 
     
    /** 
     * Passes the call to the implementation. 
     */     
    public boolean hasChildNodes () { 
        return _impl.hasChildNodes ();
    } 
     
    /** 
     * Passes the call to the implementation and returns an abstraction 
     * of the returned <code>Node</code>. 
     * @return a <code>DOMNode</code> object 
     */     
    public DOMNode getPreviousSibling () { 
        return _factory.createDOMNode( _impl.getPreviousSibling() );
    } 
     
    /** 
     * Passes the call to the implementation and returns an abstraction 
     * of the returned <code>Node</code>. 
     * @return a <code>DOMNode</code> object 
     */     
    public DOMNode getNextSibling () { 
        return _factory.createDOMNode( _impl.getNextSibling() );
    } 
     
    /** 
     * Passes the call to the implementation and returns an abstraction 
     * of the returned <code>NamedNodeMap</code>. 
     * @return a <code>NamedDOMNodeMap</code> object 
     */     
    public NamedDOMNodeMap getAttributes () { 
        return new NamedDOMNodeMap( _factory, _impl.getAttributes() );
    } 
     
    /** 
     * Passes the call to the implementation. 
     */     
    public boolean hasAttributes() { 
        return (_impl.getAttributes().getLength() > 0);
    } 
     
    /** 
     * Passes the call to the implementation. 
     */     
    public String getNamespaceURI() {
        return _impl.getNamespaceURI();
    } 
     
    /** 
     * Passes the call to the implementation. 
     */     
    public String getPrefix() {
        return _impl.getPrefix();
    } 
     
    /** 
     * Passes the call to the implementation. 
     */     
    public void setPrefix(String prefix) throws DOMException {
        setModified(true); 
        _impl.setPrefix(prefix);
    } 
     
    /** 
     * Passes the call to the implementation. 
     */     
    public String getLocalName() {
        return _impl.getLocalName();
    } 
     
    /** 
     * Passes the call to the implementation and returns an abstraction 
     * of the returned <code>Node</code>. 
     * @return a <code>DOMNode</code> object 
     */     
    public DOMNode cloneNode (boolean deep) {
        return _factory.createDOMNode( _impl.cloneNode (deep) );
    } 
     
    /** 
     * Passes the call to the implementation. 
     */     
    public void normalize() { 
        _impl.normalize();
    } 
     
    /** 
     * Passes the call to the implementation and returns an abstraction 
     * of the returned <code>Document</code>. 
     * @return a <code>DOMDocument</code> object 
     */     
    public DOMDocument getOwnerDocument() { 
        return _factory.createDOMDocument(_impl.getOwnerDocument());
    } 
     
    /** 
     * @return true is node has been modified 
     */