/***************************************************************************
                            QDomNode.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class  QDomNode implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QDomNode(Class dummy){}

	private native void newQDomNode();
	public QDomNode() {
		newQDomNode();
	}
	private native void newQDomNode( QDomNode arg1);
	public QDomNode( QDomNode arg1) {
		newQDomNode( arg1);
	}
	protected native void finalize() throws InternalError;
	public native QDomNode insertBefore( QDomNode newChild, QDomNode refChild);
	public native QDomNode insertAfter( QDomNode newChild, QDomNode refChild);
	public native QDomNode replaceChild( QDomNode newChild, QDomNode oldChild);
	public native QDomNode removeChild( QDomNode oldChild);
	public native QDomNode appendChild( QDomNode newChild);
	public native boolean hasChildNodes();
	public native QDomNode cloneNode( boolean deep);
	public native QDomNode cloneNode();
	public native void normalize();
	public native boolean isSupported( String feature, String version);
	public native String nodeName();
	public native int nodeType();
	public native QDomNode parentNode();
	public native ArrayList childNodes();
	public native QDomNode firstChild();
	public native QDomNode lastChild();
	public native QDomNode previousSibling();
	public native QDomNode nextSibling();
	public native QDomNamedNodeMap attributes();
	public native QDomDocument ownerDocument();
	public native String namespaceURI();
	public native String localName();
	public native boolean hasAttributes();
	public native String nodeValue();
	public native void setNodeValue( String arg1);
	public native String prefix();
	public native void setPrefix( String pre);
	public native boolean isAttr();
	public native boolean isCDATASection();
	public native boolean isDocumentFragment();
	public native boolean isDocument();
	public native boolean isDocumentType();
	public native boolean isElement();
	public native boolean isEntityReference();
	public native boolean isText();
	public native boolean isEntity();
	public native boolean isNotation();
	public native boolean isProcessingInstruction();
	public native boolean isCharacterData();
	public native boolean isComment();

/** 
 Shortcut to avoid dealing with QDomNodeList
 all the time.
     
*/
	public native QDomNode namedItem( String name);
	public native boolean isNull();
	public native void clear();
	public native QDomAttr toAttr();
	public native QDomCDATASection toCDATASection();
	public native QDomDocumentFragment toDocumentFragment();
	public native QDomDocument toDocument();
	public native QDomDocumentType toDocumentType();
	public native QDomElement toElement();
	public native QDomEntityReference toEntityReference();
	public native QDomText toText();
	public native QDomEntity toEntity();
	public native QDomNotation toNotation();
	public native QDomProcessingInstruction toProcessingInstruction();
	public native QDomCharacterData toCharacterData();
	public native QDomComment toComment();
	public native void save( QTextStream arg1, int arg2);
//	private native void newQDomNode( QDomNodePrivate arg1);
//	public QDomNode( QDomNodePrivate arg1) {
//		newQDomNode( arg1);
//	}
	public static final int ElementNode = 1;
	public static final int AttributeNode = 2;
	public static final int TextNode = 3;
	public static final int CDATASectionNode = 4;
	public static final int EntityReferenceNode = 5;
	public static final int EntityNode = 6;
	public static final int ProcessingInstructionNode = 7;
	public static final int CommentNode = 8;
	public static final int DocumentNode = 9;
	public static final int DocumentTypeNode = 10;
	public static final int DocumentFragmentNode = 11;
	public static final int NotationNode = 12;
	public static final int BaseNode = 21;
	public static final int CharacterDataNode = 22;
}
