/* libxml-Entity.c generated by valac 0.28.1, the Vala compiler
 * generated from libxml-Entity.vala, do not modify */

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/* Entity.vala
 *
 * Copyright (C) 2011-2013  Richard Schwarting <aquarichy@gmail.com>
 * Copyright (C) 2011, 2015  Daniel Espinosa <esodan@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *      Richard Schwarting <aquarichy@gmail.com>
 *      Daniel Espinosa <esodan@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <gio/gio.h>
#include <libxml/tree.h>
#include <glib/gi18n-lib.h>


#define GXML_TYPE_NODE (gxml_node_get_type ())
#define GXML_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NODE, GXmlNode))
#define GXML_IS_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NODE))
#define GXML_NODE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_NODE, GXmlNodeIface))

typedef struct _GXmlNode GXmlNode;
typedef struct _GXmlNodeIface GXmlNodeIface;

#define GXML_TYPE_ELEMENT_LIST (gxml_element_list_get_type ())
#define GXML_ELEMENT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ELEMENT_LIST, GXmlElementList))
#define GXML_ELEMENT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ELEMENT_LIST, GXmlElementListClass))
#define GXML_IS_ELEMENT_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ELEMENT_LIST))
#define GXML_IS_ELEMENT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ELEMENT_LIST))
#define GXML_ELEMENT_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ELEMENT_LIST, GXmlElementListClass))

typedef struct _GXmlElementList GXmlElementList;
typedef struct _GXmlElementListClass GXmlElementListClass;

#define GXML_TYPE_NAMESPACE (gxml_namespace_get_type ())
#define GXML_NAMESPACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMESPACE, GXmlNamespace))
#define GXML_IS_NAMESPACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMESPACE))
#define GXML_NAMESPACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_NAMESPACE, GXmlNamespaceIface))

typedef struct _GXmlNamespace GXmlNamespace;
typedef struct _GXmlNamespaceIface GXmlNamespaceIface;

#define GXML_TYPE_NODE_TYPE (gxml_node_type_get_type ())

#define GXML_TYPE_DOCUMENT (gxml_document_get_type ())
#define GXML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOCUMENT, GXmlDocument))
#define GXML_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOCUMENT))
#define GXML_DOCUMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOCUMENT, GXmlDocumentIface))

typedef struct _GXmlDocument GXmlDocument;
typedef struct _GXmlDocumentIface GXmlDocumentIface;

#define GXML_TYPE_XNODE (gxml_xnode_get_type ())
#define GXML_XNODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XNODE, GXmlxNode))
#define GXML_XNODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_XNODE, GXmlxNodeClass))
#define GXML_IS_XNODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XNODE))
#define GXML_IS_XNODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_XNODE))
#define GXML_XNODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_XNODE, GXmlxNodeClass))

typedef struct _GXmlxNode GXmlxNode;
typedef struct _GXmlxNodeClass GXmlxNodeClass;
typedef struct _GXmlxNodePrivate GXmlxNodePrivate;

#define GXML_TYPE_NAMESPACE_ATTR (gxml_namespace_attr_get_type ())
#define GXML_NAMESPACE_ATTR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMESPACE_ATTR, GXmlNamespaceAttr))
#define GXML_NAMESPACE_ATTR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_NAMESPACE_ATTR, GXmlNamespaceAttrClass))
#define GXML_IS_NAMESPACE_ATTR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMESPACE_ATTR))
#define GXML_IS_NAMESPACE_ATTR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_NAMESPACE_ATTR))
#define GXML_NAMESPACE_ATTR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_NAMESPACE_ATTR, GXmlNamespaceAttrClass))

typedef struct _GXmlNamespaceAttr GXmlNamespaceAttr;
typedef struct _GXmlNamespaceAttrClass GXmlNamespaceAttrClass;

#define GXML_TYPE_XNODE_LIST (gxml_xnode_list_get_type ())
#define GXML_XNODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XNODE_LIST, GXmlxNodeList))
#define GXML_IS_XNODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XNODE_LIST))
#define GXML_XNODE_LIST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_XNODE_LIST, GXmlxNodeListIface))

typedef struct _GXmlxNodeList GXmlxNodeList;
typedef struct _GXmlxNodeListIface GXmlxNodeListIface;

#define GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP (gxml_abstract_named_attr_map_get_type ())
#define GXML_ABSTRACT_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP, GXmlAbstractNamedAttrMap))
#define GXML_ABSTRACT_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP, GXmlAbstractNamedAttrMapClass))
#define GXML_IS_ABSTRACT_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP))
#define GXML_IS_ABSTRACT_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP))
#define GXML_ABSTRACT_NAMED_ATTR_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP, GXmlAbstractNamedAttrMapClass))

typedef struct _GXmlAbstractNamedAttrMap GXmlAbstractNamedAttrMap;
typedef struct _GXmlAbstractNamedAttrMapClass GXmlAbstractNamedAttrMapClass;

#define GXML_TYPE_NAMED_ATTR_MAP (gxml_named_attr_map_get_type ())
#define GXML_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMED_ATTR_MAP, GXmlNamedAttrMap))
#define GXML_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_NAMED_ATTR_MAP, GXmlNamedAttrMapClass))
#define GXML_IS_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMED_ATTR_MAP))
#define GXML_IS_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_NAMED_ATTR_MAP))
#define GXML_NAMED_ATTR_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_NAMED_ATTR_MAP, GXmlNamedAttrMapClass))

typedef struct _GXmlNamedAttrMap GXmlNamedAttrMap;
typedef struct _GXmlNamedAttrMapClass GXmlNamedAttrMapClass;

#define GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST (gxml_abstract_namespace_attr_node_list_get_type ())
#define GXML_ABSTRACT_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST, GXmlAbstractNamespaceAttrNodeList))
#define GXML_ABSTRACT_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST, GXmlAbstractNamespaceAttrNodeListClass))
#define GXML_IS_ABSTRACT_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST))
#define GXML_IS_ABSTRACT_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST))
#define GXML_ABSTRACT_NAMESPACE_ATTR_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST, GXmlAbstractNamespaceAttrNodeListClass))

typedef struct _GXmlAbstractNamespaceAttrNodeList GXmlAbstractNamespaceAttrNodeList;
typedef struct _GXmlAbstractNamespaceAttrNodeListClass GXmlAbstractNamespaceAttrNodeListClass;

#define GXML_TYPE_NAMESPACE_ATTR_NODE_LIST (gxml_namespace_attr_node_list_get_type ())
#define GXML_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST, GXmlNamespaceAttrNodeList))
#define GXML_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST, GXmlNamespaceAttrNodeListClass))
#define GXML_IS_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST))
#define GXML_IS_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST))
#define GXML_NAMESPACE_ATTR_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST, GXmlNamespaceAttrNodeListClass))

typedef struct _GXmlNamespaceAttrNodeList GXmlNamespaceAttrNodeList;
typedef struct _GXmlNamespaceAttrNodeListClass GXmlNamespaceAttrNodeListClass;

#define GXML_TYPE_ENTITY (gxml_entity_get_type ())
#define GXML_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ENTITY, GXmlEntity))
#define GXML_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ENTITY, GXmlEntityClass))
#define GXML_IS_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ENTITY))
#define GXML_IS_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ENTITY))
#define GXML_ENTITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ENTITY, GXmlEntityClass))

typedef struct _GXmlEntity GXmlEntity;
typedef struct _GXmlEntityClass GXmlEntityClass;
typedef struct _GXmlEntityPrivate GXmlEntityPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GXML_TYPE_XDOCUMENT (gxml_xdocument_get_type ())
#define GXML_XDOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XDOCUMENT, GXmlxDocument))
#define GXML_XDOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_XDOCUMENT, GXmlxDocumentClass))
#define GXML_IS_XDOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XDOCUMENT))
#define GXML_IS_XDOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_XDOCUMENT))
#define GXML_XDOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_XDOCUMENT, GXmlxDocumentClass))

typedef struct _GXmlxDocument GXmlxDocument;
typedef struct _GXmlxDocumentClass GXmlxDocumentClass;

#define GXML_TYPE_CHILD_NODE_LIST (gxml_child_node_list_get_type ())
#define GXML_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_CHILD_NODE_LIST, GXmlChildNodeList))
#define GXML_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_CHILD_NODE_LIST, GXmlChildNodeListClass))
#define GXML_IS_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_CHILD_NODE_LIST))
#define GXML_IS_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_CHILD_NODE_LIST))
#define GXML_CHILD_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_CHILD_NODE_LIST, GXmlChildNodeListClass))

typedef struct _GXmlChildNodeList GXmlChildNodeList;
typedef struct _GXmlChildNodeListClass GXmlChildNodeListClass;

#define GXML_TYPE_ENTITY_CHILD_NODE_LIST (gxml_entity_child_node_list_get_type ())
#define GXML_ENTITY_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ENTITY_CHILD_NODE_LIST, GXmlEntityChildNodeList))
#define GXML_ENTITY_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ENTITY_CHILD_NODE_LIST, GXmlEntityChildNodeListClass))
#define GXML_IS_ENTITY_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ENTITY_CHILD_NODE_LIST))
#define GXML_IS_ENTITY_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ENTITY_CHILD_NODE_LIST))
#define GXML_ENTITY_CHILD_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ENTITY_CHILD_NODE_LIST, GXmlEntityChildNodeListClass))

typedef struct _GXmlEntityChildNodeList GXmlEntityChildNodeList;
typedef struct _GXmlEntityChildNodeListClass GXmlEntityChildNodeListClass;

#define GXML_TYPE_XDOCUMENT_TYPE (gxml_xdocument_type_get_type ())
#define GXML_XDOCUMENT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XDOCUMENT_TYPE, GXmlxDocumentType))
#define GXML_XDOCUMENT_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_XDOCUMENT_TYPE, GXmlxDocumentTypeClass))
#define GXML_IS_XDOCUMENT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XDOCUMENT_TYPE))
#define GXML_IS_XDOCUMENT_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_XDOCUMENT_TYPE))
#define GXML_XDOCUMENT_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_XDOCUMENT_TYPE, GXmlxDocumentTypeClass))

typedef struct _GXmlxDocumentType GXmlxDocumentType;
typedef struct _GXmlxDocumentTypeClass GXmlxDocumentTypeClass;

struct _GXmlNamespaceIface {
	GTypeInterface parent_iface;
	gchar* (*get_uri) (GXmlNamespace* self);
	gchar* (*get_prefix) (GXmlNamespace* self);
};

typedef enum  {
	GXML_NODE_TYPE_X_UNKNOWN = 0,
	GXML_NODE_TYPE_ELEMENT = 1,
	GXML_NODE_TYPE_ATTRIBUTE,
	GXML_NODE_TYPE_TEXT,
	GXML_NODE_TYPE_CDATA_SECTION,
	GXML_NODE_TYPE_ENTITY_REFERENCE,
	GXML_NODE_TYPE_ENTITY,
	GXML_NODE_TYPE_PROCESSING_INSTRUCTION,
	GXML_NODE_TYPE_COMMENT,
	GXML_NODE_TYPE_DOCUMENT,
	GXML_NODE_TYPE_DOCUMENT_TYPE,
	GXML_NODE_TYPE_DOCUMENT_FRAGMENT,
	GXML_NODE_TYPE_NOTATION
} GXmlNodeType;

struct _GXmlDocumentIface {
	GTypeInterface parent_iface;
	GXmlNode* (*create_element) (GXmlDocument* self, const gchar* name, GError** error);
	GXmlNode* (*create_text) (GXmlDocument* self, const gchar* text);
	GXmlNode* (*create_comment) (GXmlDocument* self, const gchar* text);
	GXmlNode* (*create_cdata) (GXmlDocument* self, const gchar* text);
	GXmlNode* (*create_pi) (GXmlDocument* self, const gchar* target, const gchar* data);
	gboolean (*save) (GXmlDocument* self, GCancellable* cancellable, GError** error);
	gboolean (*save_as) (GXmlDocument* self, GFile* f, GCancellable* cancellable, GError** error);
	gboolean (*get_indent) (GXmlDocument* self);
	void (*set_indent) (GXmlDocument* self, gboolean value);
	gboolean (*get_ns_top) (GXmlDocument* self);
	void (*set_ns_top) (GXmlDocument* self, gboolean value);
	gboolean (*get_prefix_default_ns) (GXmlDocument* self);
	void (*set_prefix_default_ns) (GXmlDocument* self, gboolean value);
	gboolean (*get_backup) (GXmlDocument* self);
	void (*set_backup) (GXmlDocument* self, gboolean value);
	GXmlNode* (*get_root) (GXmlDocument* self);
	GFile* (*get_file) (GXmlDocument* self);
	void (*set_file) (GXmlDocument* self, GFile* value);
};

struct _GXmlNodeIface {
	GTypeInterface parent_iface;
	GXmlNode* (*get) (GXmlNode* self, const gchar* key);
	GXmlElementList* (*get_elements_by_property_value) (GXmlNode* self, const gchar* property, const gchar* value);
	gchar* (*to_string) (GXmlNode* self);
	gboolean (*set_namespace) (GXmlNode* self, const gchar* uri, const gchar* prefix);
	gchar* (*ns_prefix) (GXmlNode* self);
	gchar* (*ns_uri) (GXmlNode* self);
	GeeList* (*get_namespaces) (GXmlNode* self);
	GeeBidirList* (*get_childs) (GXmlNode* self);
	GeeBidirList* (*get_children) (GXmlNode* self);
	GeeMap* (*get_attrs) (GXmlNode* self);
	gchar* (*get_name) (GXmlNode* self);
	gchar* (*get_value) (GXmlNode* self);
	void (*set_value) (GXmlNode* self, const gchar* value);
	GXmlNodeType (*get_type_node) (GXmlNode* self);
	GXmlDocument* (*get_document) (GXmlNode* self);
	GXmlNode* (*get_parent) (GXmlNode* self);
};

struct _GXmlxNodeListIface {
	GTypeInterface parent_iface;
	GXmlxNode* (*item) (GXmlxNodeList* self, gulong idx);
	GXmlxNode* (*insert_before) (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* ref_child);
	GXmlxNode* (*replace_child) (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* old_child);
	GXmlxNode* (*remove_child) (GXmlxNodeList* self, GXmlxNode* old_child);
	GXmlxNode* (*append_child) (GXmlxNodeList* self, GXmlxNode* new_child);
	gchar* (*to_string) (GXmlxNodeList* self, gboolean in_line);
	GXmlxNode* (*first) (GXmlxNodeList* self);
	GXmlxNode* (*last) (GXmlxNodeList* self);
	GXmlxNode* (*get) (GXmlxNodeList* self, gint n);
	gulong (*get_length) (GXmlxNodeList* self);
	void (*set_length) (GXmlxNodeList* self, gulong value);
};

struct _GXmlxNode {
	GObject parent_instance;
	GXmlxNodePrivate * priv;
	GXmlxNodeList* _child_nodes;
	GXmlNamedAttrMap* _attributes;
	GXmlNamespaceAttrNodeList* _namespace_definitions;
};

struct _GXmlxNodeClass {
	GObjectClass parent_class;
	GXmlNamespaceAttr* (*add_namespace_attr) (GXmlxNode* self, const gchar* uri, const gchar* namespace_prefix);
	gboolean (*set_namespace) (GXmlxNode* self, const gchar* uri, const gchar* namespace_prefix);
	GXmlxNode* (*insert_before) (GXmlxNode* self, GXmlxNode* new_child, GXmlxNode* ref_child);
	GXmlxNode* (*replace_child) (GXmlxNode* self, GXmlxNode* new_child, GXmlxNode* old_child);
	GXmlxNode* (*remove_child) (GXmlxNode* self, GXmlxNode* old_child);
	GXmlxNode* (*append_child) (GXmlxNode* self, GXmlxNode* new_child);
	gboolean (*has_child_nodes) (GXmlxNode* self);
	GXmlxNode* (*clone_node) (GXmlxNode* self, gboolean deep);
	gchar* (*stringify) (GXmlxNode* self, gboolean format, gint level);
	gchar* (*to_string) (GXmlxNode* self);
	GeeList* (*get_namespace_definitions) (GXmlxNode* self);
	void (*set_namespace_definitions) (GXmlxNode* self, GeeList* value);
	const gchar* (*get_namespace_uri) (GXmlxNode* self);
	void (*set_namespace_uri) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_namespace_prefix) (GXmlxNode* self);
	void (*set_namespace_prefix) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_local_name) (GXmlxNode* self);
	void (*set_local_name) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_node_name) (GXmlxNode* self);
	void (*set_node_name) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_node_value) (GXmlxNode* self);
	void (*set_node_value) (GXmlxNode* self, const gchar* value);
	GXmlNodeType (*get_node_type) (GXmlxNode* self);
	void (*set_node_type) (GXmlxNode* self, GXmlNodeType value);
	GXmlxNode* (*get_parent_node) (GXmlxNode* self);
	void (*set_parent_node) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNodeList* (*get_child_nodes) (GXmlxNode* self);
	void (*set_child_nodes) (GXmlxNode* self, GXmlxNodeList* value);
	GXmlxNode* (*get_first_child) (GXmlxNode* self);
	void (*set_first_child) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNode* (*get_last_child) (GXmlxNode* self);
	void (*set_last_child) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNode* (*get_previous_sibling) (GXmlxNode* self);
	void (*set_previous_sibling) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNode* (*get_next_sibling) (GXmlxNode* self);
	void (*set_next_sibling) (GXmlxNode* self, GXmlxNode* value);
	GXmlNamedAttrMap* (*get_attributes) (GXmlxNode* self);
	void (*set_attributes) (GXmlxNode* self, GXmlNamedAttrMap* value);
	GeeList* (*get_namespaces) (GXmlxNode* self);
	GeeBidirList* (*get_children) (GXmlxNode* self);
	GeeMap* (*get_attrs) (GXmlxNode* self);
	gchar* (*get_name) (GXmlxNode* self);
	gchar* (*get_value) (GXmlxNode* self);
	void (*set_value) (GXmlxNode* self, const gchar* value);
	GXmlNode* (*get_parent) (GXmlxNode* self);
};

struct _GXmlEntity {
	GXmlxNode parent_instance;
	GXmlEntityPrivate * priv;
};

struct _GXmlEntityClass {
	GXmlxNodeClass parent_class;
};

struct _GXmlEntityPrivate {
	xmlEntity* entity;
	GXmlxNodeList* _entity_list;
};


static gpointer gxml_entity_parent_class = NULL;

GType gxml_element_list_get_type (void) G_GNUC_CONST;
GType gxml_namespace_get_type (void) G_GNUC_CONST;
GType gxml_node_type_get_type (void) G_GNUC_CONST;
GType gxml_document_get_type (void) G_GNUC_CONST;
GType gxml_node_get_type (void) G_GNUC_CONST;
GType gxml_xnode_get_type (void) G_GNUC_CONST;
GType gxml_namespace_attr_get_type (void) G_GNUC_CONST;
GType gxml_xnode_list_get_type (void) G_GNUC_CONST;
GType gxml_abstract_named_attr_map_get_type (void) G_GNUC_CONST;
GType gxml_named_attr_map_get_type (void) G_GNUC_CONST;
GType gxml_abstract_namespace_attr_node_list_get_type (void) G_GNUC_CONST;
GType gxml_namespace_attr_node_list_get_type (void) G_GNUC_CONST;
GType gxml_entity_get_type (void) G_GNUC_CONST;
#define GXML_ENTITY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GXML_TYPE_ENTITY, GXmlEntityPrivate))
enum  {
	GXML_ENTITY_DUMMY_PROPERTY,
	GXML_ENTITY_PUBLIC_ID,
	GXML_ENTITY_SYSTEM_ID,
	GXML_ENTITY_NOTATION_NAME,
	GXML_ENTITY_NODE_NAME,
	GXML_ENTITY_PARENT_NODE,
	GXML_ENTITY_CHILD_NODES
};
GType gxml_xdocument_get_type (void) G_GNUC_CONST;
GXmlEntity* gxml_entity_new (xmlEntity* entity, GXmlxDocument* doc);
GXmlEntity* gxml_entity_construct (GType object_type, xmlEntity* entity, GXmlxDocument* doc);
GXmlxNode* gxml_xnode_construct (GType object_type, GXmlNodeType type, GXmlxDocument* owner);
GXmlxDocument* gxml_xnode_get_owner_document (GXmlxNode* self);
GXmlEntityChildNodeList* gxml_entity_child_node_list_new (xmlEntity* parent, GXmlxDocument* owner);
GXmlEntityChildNodeList* gxml_entity_child_node_list_construct (GType object_type, xmlEntity* parent, GXmlxDocument* owner);
GType gxml_child_node_list_get_type (void) G_GNUC_CONST;
GType gxml_entity_child_node_list_get_type (void) G_GNUC_CONST;
static GXmlxNode* gxml_entity_real_insert_before (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* ref_child);
GXmlxNodeList* gxml_xnode_get_child_nodes (GXmlxNode* self);
GXmlxNode* gxml_xnode_list_insert_before (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* ref_child);
static GXmlxNode* gxml_entity_real_replace_child (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* old_child);
GXmlxNode* gxml_xnode_list_replace_child (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* old_child);
static GXmlxNode* gxml_entity_real_remove_child (GXmlxNode* base, GXmlxNode* old_child);
GXmlxNode* gxml_xnode_list_remove_child (GXmlxNodeList* self, GXmlxNode* old_child);
static GXmlxNode* gxml_entity_real_append_child (GXmlxNode* base, GXmlxNode* new_child);
GXmlxNode* gxml_xnode_list_append_child (GXmlxNodeList* self, GXmlxNode* new_child);
static gboolean gxml_entity_real_has_child_nodes (GXmlxNode* base);
gulong gxml_xnode_list_get_length (GXmlxNodeList* self);
static GXmlxNode* gxml_entity_real_clone_node (GXmlxNode* base, gboolean deep);
const gchar* gxml_entity_get_public_id (GXmlEntity* self);
static void gxml_entity_set_public_id (GXmlEntity* self, const gchar* value);
const gchar* gxml_entity_get_system_id (GXmlEntity* self);
static void gxml_entity_set_system_id (GXmlEntity* self, const gchar* value);
const gchar* gxml_entity_get_notation_name (GXmlEntity* self);
static void gxml_entity_set_notation_name (GXmlEntity* self, const gchar* value);
GType gxml_xdocument_type_get_type (void) G_GNUC_CONST;
GXmlxDocumentType* gxml_xdocument_get_doctype (GXmlxDocument* self);
static void gxml_entity_finalize (GObject* obj);
const gchar* gxml_xnode_get_node_name (GXmlxNode* self);
GXmlxNode* gxml_xnode_get_parent_node (GXmlxNode* self);
static void _vala_gxml_entity_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void gxml_xnode_set_node_name (GXmlxNode* self, const gchar* value);
void gxml_xnode_set_parent_node (GXmlxNode* self, GXmlxNode* value);
void gxml_xnode_set_child_nodes (GXmlxNode* self, GXmlxNodeList* value);
static void _vala_gxml_entity_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GXmlEntity* gxml_entity_construct (GType object_type, xmlEntity* entity, GXmlxDocument* doc) {
	GXmlEntity * self = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	xmlEntity* _tmp1_ = NULL;
	xmlEntity* _tmp2_ = NULL;
	GXmlxDocument* _tmp3_ = NULL;
	GXmlxDocument* _tmp4_ = NULL;
	GXmlEntityChildNodeList* _tmp5_ = NULL;
	g_return_val_if_fail (doc != NULL, NULL);
	_tmp0_ = doc;
	self = (GXmlEntity*) gxml_xnode_construct (object_type, GXML_NODE_TYPE_ENTITY, _tmp0_);
	_tmp1_ = entity;
	self->priv->entity = _tmp1_;
	_tmp2_ = self->priv->entity;
	_tmp3_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp4_ = _tmp3_;
	_tmp5_ = gxml_entity_child_node_list_new (_tmp2_, _tmp4_);
	_g_object_unref0 (self->priv->_entity_list);
	self->priv->_entity_list = (GXmlxNodeList*) _tmp5_;
	return self;
}


GXmlEntity* gxml_entity_new (xmlEntity* entity, GXmlxDocument* doc) {
	return gxml_entity_construct (GXML_TYPE_ENTITY, entity, doc);
}


static GXmlxNode* gxml_entity_real_insert_before (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* ref_child) {
	GXmlEntity * self;
	GXmlxNode* result = NULL;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	self = (GXmlEntity*) base;
	g_return_val_if_fail (new_child != NULL, NULL);
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = new_child;
	_tmp3_ = ref_child;
	_tmp4_ = gxml_xnode_list_insert_before (_tmp1_, _tmp2_, _tmp3_);
	result = _tmp4_;
	return result;
}


static GXmlxNode* gxml_entity_real_replace_child (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* old_child) {
	GXmlEntity * self;
	GXmlxNode* result = NULL;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	self = (GXmlEntity*) base;
	g_return_val_if_fail (new_child != NULL, NULL);
	g_return_val_if_fail (old_child != NULL, NULL);
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = new_child;
	_tmp3_ = old_child;
	_tmp4_ = gxml_xnode_list_replace_child (_tmp1_, _tmp2_, _tmp3_);
	result = _tmp4_;
	return result;
}


static GXmlxNode* gxml_entity_real_remove_child (GXmlxNode* base, GXmlxNode* old_child) {
	GXmlEntity * self;
	GXmlxNode* result = NULL;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	self = (GXmlEntity*) base;
	g_return_val_if_fail (old_child != NULL, NULL);
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = old_child;
	_tmp3_ = gxml_xnode_list_remove_child (_tmp1_, _tmp2_);
	result = _tmp3_;
	return result;
}


static GXmlxNode* gxml_entity_real_append_child (GXmlxNode* base, GXmlxNode* new_child) {
	GXmlEntity * self;
	GXmlxNode* result = NULL;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	self = (GXmlEntity*) base;
	g_return_val_if_fail (new_child != NULL, NULL);
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = new_child;
	_tmp3_ = gxml_xnode_list_append_child (_tmp1_, _tmp2_);
	result = _tmp3_;
	return result;
}


static gboolean gxml_entity_real_has_child_nodes (GXmlxNode* base) {
	GXmlEntity * self;
	gboolean result = FALSE;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	gulong _tmp2_ = 0UL;
	gulong _tmp3_ = 0UL;
	self = (GXmlEntity*) base;
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = gxml_xnode_list_get_length (_tmp1_);
	_tmp3_ = _tmp2_;
	result = _tmp3_ > ((gulong) 0);
	return result;
}


static GXmlxNode* gxml_entity_real_clone_node (GXmlxNode* base, gboolean deep) {
	GXmlEntity * self;
	GXmlxNode* result = NULL;
	const gchar* _tmp0_ = NULL;
	self = (GXmlEntity*) base;
	_tmp0_ = _ ("Cloning of Entity not yet supported");
	g_warning ("libxml-Entity.vala:129: %s", _tmp0_);
	result = (GXmlxNode*) self;
	return result;
}


const gchar* gxml_entity_get_public_id (GXmlEntity* self) {
	const gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	result = "";
	return result;
}


static void gxml_entity_set_public_id (GXmlEntity* self, const gchar* value) {
	g_return_if_fail (self != NULL);
	g_object_notify ((GObject *) self, "public-id");
}


const gchar* gxml_entity_get_system_id (GXmlEntity* self) {
	const gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	result = "";
	return result;
}


static void gxml_entity_set_system_id (GXmlEntity* self, const gchar* value) {
	g_return_if_fail (self != NULL);
	g_object_notify ((GObject *) self, "system-id");
}


const gchar* gxml_entity_get_notation_name (GXmlEntity* self) {
	const gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	result = "";
	return result;
}


static void gxml_entity_set_notation_name (GXmlEntity* self, const gchar* value) {
	g_return_if_fail (self != NULL);
	g_object_notify ((GObject *) self, "notation-name");
}


static const gchar* gxml_entity_real_get_node_name (GXmlxNode* base) {
	const gchar* result;
	GXmlEntity* self;
	self = (GXmlEntity*) base;
	result = "";
	return result;
}


static void gxml_entity_real_set_node_name (GXmlxNode* base, const gchar* value) {
	GXmlEntity* self;
	self = (GXmlEntity*) base;
	g_object_notify ((GObject *) self, "node-name");
}


static GXmlxNode* gxml_entity_real_get_parent_node (GXmlxNode* base) {
	GXmlxNode* result;
	GXmlEntity* self;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	GXmlxDocumentType* _tmp2_ = NULL;
	GXmlxDocumentType* _tmp3_ = NULL;
	self = (GXmlEntity*) base;
	_tmp0_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = gxml_xdocument_get_doctype (_tmp1_);
	_tmp3_ = _tmp2_;
	result = (GXmlxNode*) _tmp3_;
	return result;
}


static void gxml_entity_real_set_parent_node (GXmlxNode* base, GXmlxNode* value) {
	GXmlEntity* self;
	self = (GXmlEntity*) base;
	g_object_notify ((GObject *) self, "parent-node");
}


static GXmlxNodeList* gxml_entity_real_get_child_nodes (GXmlxNode* base) {
	GXmlxNodeList* result;
	GXmlEntity* self;
	GXmlxNodeList* _tmp0_ = NULL;
	self = (GXmlEntity*) base;
	_tmp0_ = self->priv->_entity_list;
	result = _tmp0_;
	return result;
}


static void gxml_entity_real_set_child_nodes (GXmlxNode* base, GXmlxNodeList* value) {
	GXmlEntity* self;
	self = (GXmlEntity*) base;
	g_object_notify ((GObject *) self, "child-nodes");
}


static void gxml_entity_class_init (GXmlEntityClass * klass) {
	gxml_entity_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GXmlEntityPrivate));
	((GXmlxNodeClass *) klass)->insert_before = gxml_entity_real_insert_before;
	((GXmlxNodeClass *) klass)->replace_child = gxml_entity_real_replace_child;
	((GXmlxNodeClass *) klass)->remove_child = gxml_entity_real_remove_child;
	((GXmlxNodeClass *) klass)->append_child = gxml_entity_real_append_child;
	((GXmlxNodeClass *) klass)->has_child_nodes = gxml_entity_real_has_child_nodes;
	((GXmlxNodeClass *) klass)->clone_node = gxml_entity_real_clone_node;
	GXML_XNODE_CLASS (klass)->get_node_name = gxml_entity_real_get_node_name;
	GXML_XNODE_CLASS (klass)->set_node_name = gxml_entity_real_set_node_name;
	GXML_XNODE_CLASS (klass)->get_parent_node = gxml_entity_real_get_parent_node;
	GXML_XNODE_CLASS (klass)->set_parent_node = gxml_entity_real_set_parent_node;
	GXML_XNODE_CLASS (klass)->get_child_nodes = gxml_entity_real_get_child_nodes;
	GXML_XNODE_CLASS (klass)->set_child_nodes = gxml_entity_real_set_child_nodes;
	G_OBJECT_CLASS (klass)->get_property = _vala_gxml_entity_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gxml_entity_set_property;
	G_OBJECT_CLASS (klass)->finalize = gxml_entity_finalize;
	/**
	 * A public identifier for the entity. %NULL when unspecified.
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_ENTITY_PUBLIC_ID, g_param_spec_string ("public-id", "public-id", "public-id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * A system identifier for the entity. %NULL when unspecified.
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_ENTITY_SYSTEM_ID, g_param_spec_string ("system-id", "system-id", "system-id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * The notation name for this entity if it is
	 * unparsed. This is %NULL if the entity is parsed.
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_ENTITY_NOTATION_NAME, g_param_spec_string ("notation-name", "notation-name", "notation-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_ENTITY_NODE_NAME, g_param_spec_string ("node-name", "node-name", "node-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_ENTITY_PARENT_NODE, g_param_spec_object ("parent-node", "parent-node", "parent-node", GXML_TYPE_XNODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_ENTITY_CHILD_NODES, g_param_spec_object ("child-nodes", "child-nodes", "child-nodes", GXML_TYPE_XNODE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void gxml_entity_instance_init (GXmlEntity * self) {
	self->priv = GXML_ENTITY_GET_PRIVATE (self);
}


static void gxml_entity_finalize (GObject* obj) {
	GXmlEntity * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GXML_TYPE_ENTITY, GXmlEntity);
	_g_object_unref0 (self->priv->_entity_list);
	G_OBJECT_CLASS (gxml_entity_parent_class)->finalize (obj);
}


/**
 * The content referenced by an {@link GXml.EntityReference}, and defined
 * in a {@link GXml.DocumentType}.
 *
 * For more, see: [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-527DCFF2]]
 */
GType gxml_entity_get_type (void) {
	static volatile gsize gxml_entity_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_entity_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GXmlEntityClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_entity_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GXmlEntity), 0, (GInstanceInitFunc) gxml_entity_instance_init, NULL };
		GType gxml_entity_type_id;
		gxml_entity_type_id = g_type_register_static (GXML_TYPE_XNODE, "GXmlEntity", &g_define_type_info, 0);
		g_once_init_leave (&gxml_entity_type_id__volatile, gxml_entity_type_id);
	}
	return gxml_entity_type_id__volatile;
}


static void _vala_gxml_entity_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GXmlEntity * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_TYPE_ENTITY, GXmlEntity);
	switch (property_id) {
		case GXML_ENTITY_PUBLIC_ID:
		g_value_set_string (value, gxml_entity_get_public_id (self));
		break;
		case GXML_ENTITY_SYSTEM_ID:
		g_value_set_string (value, gxml_entity_get_system_id (self));
		break;
		case GXML_ENTITY_NOTATION_NAME:
		g_value_set_string (value, gxml_entity_get_notation_name (self));
		break;
		case GXML_ENTITY_NODE_NAME:
		g_value_set_string (value, gxml_xnode_get_node_name ((GXmlxNode*) self));
		break;
		case GXML_ENTITY_PARENT_NODE:
		g_value_set_object (value, gxml_xnode_get_parent_node ((GXmlxNode*) self));
		break;
		case GXML_ENTITY_CHILD_NODES:
		g_value_set_object (value, gxml_xnode_get_child_nodes ((GXmlxNode*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_gxml_entity_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GXmlEntity * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_TYPE_ENTITY, GXmlEntity);
	switch (property_id) {
		case GXML_ENTITY_PUBLIC_ID:
		gxml_entity_set_public_id (self, g_value_get_string (value));
		break;
		case GXML_ENTITY_SYSTEM_ID:
		gxml_entity_set_system_id (self, g_value_get_string (value));
		break;
		case GXML_ENTITY_NOTATION_NAME:
		gxml_entity_set_notation_name (self, g_value_get_string (value));
		break;
		case GXML_ENTITY_NODE_NAME:
		gxml_xnode_set_node_name ((GXmlxNode*) self, g_value_get_string (value));
		break;
		case GXML_ENTITY_PARENT_NODE:
		gxml_xnode_set_parent_node ((GXmlxNode*) self, g_value_get_object (value));
		break;
		case GXML_ENTITY_CHILD_NODES:
		gxml_xnode_set_child_nodes ((GXmlxNode*) self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



