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

/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 0; tab-width: 2 -*- */
/* GXmlHashMapAttr.vala
 *
 * Copyright (C) 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:
 *      Daniel Espinosa <esodan@gmail.com>
 */

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


#define GXML_TYPE_GHASH_MAP_ATTR (gxml_ghash_map_attr_get_type ())
#define GXML_GHASH_MAP_ATTR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GHASH_MAP_ATTR, GXmlGHashMapAttr))
#define GXML_GHASH_MAP_ATTR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GHASH_MAP_ATTR, GXmlGHashMapAttrClass))
#define GXML_IS_GHASH_MAP_ATTR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GHASH_MAP_ATTR))
#define GXML_IS_GHASH_MAP_ATTR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GHASH_MAP_ATTR))
#define GXML_GHASH_MAP_ATTR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GHASH_MAP_ATTR, GXmlGHashMapAttrClass))

typedef struct _GXmlGHashMapAttr GXmlGHashMapAttr;
typedef struct _GXmlGHashMapAttrClass GXmlGHashMapAttrClass;
typedef struct _GXmlGHashMapAttrPrivate GXmlGHashMapAttrPrivate;

#define GXML_TYPE_GNODE (gxml_gnode_get_type ())
#define GXML_GNODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GNODE, GXmlGNode))
#define GXML_GNODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GNODE, GXmlGNodeClass))
#define GXML_IS_GNODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GNODE))
#define GXML_IS_GNODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GNODE))
#define GXML_GNODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GNODE, GXmlGNodeClass))

typedef struct _GXmlGNode GXmlGNode;
typedef struct _GXmlGNodeClass GXmlGNodeClass;

#define GXML_TYPE_GDOCUMENT (gxml_gdocument_get_type ())
#define GXML_GDOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GDOCUMENT, GXmlGDocument))
#define GXML_GDOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GDOCUMENT, GXmlGDocumentClass))
#define GXML_IS_GDOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GDOCUMENT))
#define GXML_IS_GDOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GDOCUMENT))
#define GXML_GDOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GDOCUMENT, GXmlGDocumentClass))

typedef struct _GXmlGDocument GXmlGDocument;
typedef struct _GXmlGDocumentClass GXmlGDocumentClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#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_GATTRIBUTE (gxml_gattribute_get_type ())
#define GXML_GATTRIBUTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GATTRIBUTE, GXmlGAttribute))
#define GXML_GATTRIBUTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GATTRIBUTE, GXmlGAttributeClass))
#define GXML_IS_GATTRIBUTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GATTRIBUTE))
#define GXML_IS_GATTRIBUTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GATTRIBUTE))
#define GXML_GATTRIBUTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GATTRIBUTE, GXmlGAttributeClass))

typedef struct _GXmlGAttribute GXmlGAttribute;
typedef struct _GXmlGAttributeClass GXmlGAttributeClass;
#define _g_free0(var) (var = (g_free (var), NULL))

#define GXML_GHASH_MAP_ATTR_TYPE_ITERATOR (gxml_ghash_map_attr_iterator_get_type ())
#define GXML_GHASH_MAP_ATTR_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_GHASH_MAP_ATTR_TYPE_ITERATOR, GXmlGHashMapAttrIterator))
#define GXML_GHASH_MAP_ATTR_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_GHASH_MAP_ATTR_TYPE_ITERATOR, GXmlGHashMapAttrIteratorClass))
#define GXML_GHASH_MAP_ATTR_IS_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_GHASH_MAP_ATTR_TYPE_ITERATOR))
#define GXML_GHASH_MAP_ATTR_IS_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_GHASH_MAP_ATTR_TYPE_ITERATOR))
#define GXML_GHASH_MAP_ATTR_ITERATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_GHASH_MAP_ATTR_TYPE_ITERATOR, GXmlGHashMapAttrIteratorClass))

typedef struct _GXmlGHashMapAttrIterator GXmlGHashMapAttrIterator;
typedef struct _GXmlGHashMapAttrIteratorClass GXmlGHashMapAttrIteratorClass;

#define GXML_GHASH_MAP_ATTR_TYPE_ENTRY (gxml_ghash_map_attr_entry_get_type ())
#define GXML_GHASH_MAP_ATTR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_GHASH_MAP_ATTR_TYPE_ENTRY, GXmlGHashMapAttrEntry))
#define GXML_GHASH_MAP_ATTR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_GHASH_MAP_ATTR_TYPE_ENTRY, GXmlGHashMapAttrEntryClass))
#define GXML_GHASH_MAP_ATTR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_GHASH_MAP_ATTR_TYPE_ENTRY))
#define GXML_GHASH_MAP_ATTR_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_GHASH_MAP_ATTR_TYPE_ENTRY))
#define GXML_GHASH_MAP_ATTR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_GHASH_MAP_ATTR_TYPE_ENTRY, GXmlGHashMapAttrEntryClass))

typedef struct _GXmlGHashMapAttrEntry GXmlGHashMapAttrEntry;
typedef struct _GXmlGHashMapAttrEntryClass GXmlGHashMapAttrEntryClass;
typedef struct _GXmlGHashMapAttrEntryPrivate GXmlGHashMapAttrEntryPrivate;
typedef struct _GXmlGHashMapAttrIteratorPrivate GXmlGHashMapAttrIteratorPrivate;

struct _GXmlGHashMapAttr {
	GeeAbstractMap parent_instance;
	GXmlGHashMapAttrPrivate * priv;
};

struct _GXmlGHashMapAttrClass {
	GeeAbstractMapClass parent_class;
};

struct _GXmlGHashMapAttrPrivate {
	GXmlGDocument* _doc;
	xmlNode* _node;
};

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 _GXmlGHashMapAttrEntry {
	GeeMapEntry parent_instance;
	GXmlGHashMapAttrEntryPrivate * priv;
};

struct _GXmlGHashMapAttrEntryClass {
	GeeMapEntryClass parent_class;
};

struct _GXmlGHashMapAttrEntryPrivate {
	GXmlGDocument* _doc;
	xmlAttr* _attr;
	GXmlGAttribute* oattr;
};

struct _GXmlGHashMapAttrIterator {
	GObject parent_instance;
	GXmlGHashMapAttrIteratorPrivate * priv;
};

struct _GXmlGHashMapAttrIteratorClass {
	GObjectClass parent_class;
};

struct _GXmlGHashMapAttrIteratorPrivate {
	GXmlGDocument* _doc;
	xmlNode* _node;
	xmlAttr* _current;
};


static gpointer gxml_ghash_map_attr_parent_class = NULL;
static gpointer gxml_ghash_map_attr_entry_parent_class = NULL;
static gpointer gxml_ghash_map_attr_iterator_parent_class = NULL;
static GeeMapIteratorIface* gxml_ghash_map_attr_iterator_gee_map_iterator_parent_iface = NULL;

GType gxml_ghash_map_attr_get_type (void) G_GNUC_CONST;
GType gxml_gnode_get_type (void) G_GNUC_CONST;
GType gxml_gdocument_get_type (void) G_GNUC_CONST;
#define GXML_GHASH_MAP_ATTR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GXML_TYPE_GHASH_MAP_ATTR, GXmlGHashMapAttrPrivate))
enum  {
	GXML_GHASH_MAP_ATTR_DUMMY_PROPERTY,
	GXML_GHASH_MAP_ATTR_ENTRIES,
	GXML_GHASH_MAP_ATTR_KEYS,
	GXML_GHASH_MAP_ATTR_READ_ONLY,
	GXML_GHASH_MAP_ATTR_SIZE,
	GXML_GHASH_MAP_ATTR_VALUES
};
GXmlGHashMapAttr* gxml_ghash_map_attr_new (GXmlGDocument* doc, xmlNode* node);
GXmlGHashMapAttr* gxml_ghash_map_attr_construct (GType object_type, GXmlGDocument* doc, xmlNode* node);
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;
static void gxml_ghash_map_attr_real_clear (GeeAbstractMap* base);
static GXmlNode* gxml_ghash_map_attr_real_get (GeeAbstractMap* base, const gchar* key);
GXmlGAttribute* gxml_gattribute_new (GXmlGDocument* doc, xmlAttr* node);
GXmlGAttribute* gxml_gattribute_construct (GType object_type, GXmlGDocument* doc, xmlAttr* node);
GType gxml_gattribute_get_type (void) G_GNUC_CONST;
static gboolean gxml_ghash_map_attr_real_has (GeeAbstractMap* base, const gchar* key, GXmlNode* value);
static gboolean gxml_ghash_map_attr_real_has_key (GeeAbstractMap* base, const gchar* key);
static GeeMapIterator* gxml_ghash_map_attr_real_map_iterator (GeeAbstractMap* base);
GXmlGHashMapAttrIterator* gxml_ghash_map_attr_iterator_new (GXmlGDocument* doc, xmlNode* node);
GXmlGHashMapAttrIterator* gxml_ghash_map_attr_iterator_construct (GType object_type, GXmlGDocument* doc, xmlNode* node);
GType gxml_ghash_map_attr_iterator_get_type (void) G_GNUC_CONST;
static void gxml_ghash_map_attr_real_set (GeeAbstractMap* base, const gchar* key, GXmlNode* value);
gchar* gxml_node_get_value (GXmlNode* self);
static gboolean gxml_ghash_map_attr_real_unset (GeeAbstractMap* base, const gchar* key, GXmlNode** value);
GType gxml_ghash_map_attr_entry_get_type (void) G_GNUC_CONST;
GXmlGHashMapAttrEntry* gxml_ghash_map_attr_entry_new (GXmlGDocument* doc, xmlAttr* attr);
GXmlGHashMapAttrEntry* gxml_ghash_map_attr_entry_construct (GType object_type, GXmlGDocument* doc, xmlAttr* attr);
#define GXML_GHASH_MAP_ATTR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GXML_GHASH_MAP_ATTR_TYPE_ENTRY, GXmlGHashMapAttrEntryPrivate))
enum  {
	GXML_GHASH_MAP_ATTR_ENTRY_DUMMY_PROPERTY,
	GXML_GHASH_MAP_ATTR_ENTRY_KEY,
	GXML_GHASH_MAP_ATTR_ENTRY_READ_ONLY,
	GXML_GHASH_MAP_ATTR_ENTRY_VALUE
};
static void gxml_ghash_map_attr_entry_finalize (GObject* obj);
static void _vala_gxml_ghash_map_attr_entry_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gxml_ghash_map_attr_entry_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
#define GXML_GHASH_MAP_ATTR_ITERATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GXML_GHASH_MAP_ATTR_TYPE_ITERATOR, GXmlGHashMapAttrIteratorPrivate))
enum  {
	GXML_GHASH_MAP_ATTR_ITERATOR_DUMMY_PROPERTY,
	GXML_GHASH_MAP_ATTR_ITERATOR_MUTABLE,
	GXML_GHASH_MAP_ATTR_ITERATOR_READ_ONLY,
	GXML_GHASH_MAP_ATTR_ITERATOR_VALID
};
static gchar* gxml_ghash_map_attr_iterator_real_get_key (GeeMapIterator* base);
static GXmlNode* gxml_ghash_map_attr_iterator_real_get_value (GeeMapIterator* base);
static gboolean gxml_ghash_map_attr_iterator_real_has_next (GeeMapIterator* base);
static gboolean gxml_ghash_map_attr_iterator_real_next (GeeMapIterator* base);
static void gxml_ghash_map_attr_iterator_real_set_value (GeeMapIterator* base, GXmlNode* value);
gchar* gxml_node_get_name (GXmlNode* self);
static void gxml_ghash_map_attr_iterator_real_unset (GeeMapIterator* base);
static void gxml_ghash_map_attr_iterator_finalize (GObject* obj);
static void _vala_gxml_ghash_map_attr_iterator_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void gxml_ghash_map_attr_finalize (GObject* obj);
static void _vala_gxml_ghash_map_attr_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


GXmlGHashMapAttr* gxml_ghash_map_attr_construct (GType object_type, GXmlGDocument* doc, xmlNode* node) {
	GXmlGHashMapAttr * self = NULL;
	xmlNode* _tmp0_ = NULL;
	GXmlGDocument* _tmp1_ = NULL;
	GXmlGDocument* _tmp2_ = NULL;
	g_return_val_if_fail (doc != NULL, NULL);
	self = (GXmlGHashMapAttr*) gee_abstract_map_construct (object_type, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GXML_TYPE_NODE, (GBoxedCopyFunc) g_object_ref, g_object_unref);
	_tmp0_ = node;
	self->priv->_node = _tmp0_;
	_tmp1_ = doc;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (self->priv->_doc);
	self->priv->_doc = _tmp2_;
	return self;
}


GXmlGHashMapAttr* gxml_ghash_map_attr_new (GXmlGDocument* doc, xmlNode* node) {
	return gxml_ghash_map_attr_construct (GXML_TYPE_GHASH_MAP_ATTR, doc, node);
}


static void gxml_ghash_map_attr_real_clear (GeeAbstractMap* base) {
	GXmlGHashMapAttr * self;
	xmlNode* _tmp0_ = NULL;
	xmlAttr* p = NULL;
	xmlNode* _tmp1_ = NULL;
	xmlAttr* _tmp2_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	_tmp0_ = self->priv->_node;
	if (_tmp0_ == NULL) {
		return;
	}
	_tmp1_ = self->priv->_node;
	_tmp2_ = _tmp1_->properties;
	p = _tmp2_;
	while (TRUE) {
		xmlAttr* _tmp3_ = NULL;
		xmlAttr* pn = NULL;
		xmlAttr* _tmp4_ = NULL;
		xmlAttr* _tmp5_ = NULL;
		xmlAttr* _tmp6_ = NULL;
		xmlAttr* _tmp7_ = NULL;
		_tmp3_ = p;
		if (!(_tmp3_ != NULL)) {
			break;
		}
		_tmp4_ = p;
		pn = _tmp4_;
		_tmp5_ = p;
		_tmp6_ = _tmp5_->next;
		p = _tmp6_;
		_tmp7_ = pn;
		xmlRemoveProp (_tmp7_);
	}
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (needle != NULL, FALSE);
	_tmp0_ = needle;
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
	result = _tmp1_ != NULL;
	return result;
}


static GXmlNode* gxml_ghash_map_attr_real_get (GeeAbstractMap* base, const gchar* key) {
	GXmlGHashMapAttr * self;
	GXmlNode* result = NULL;
	xmlNode* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	xmlAttr* p = NULL;
	xmlNode* _tmp30_ = NULL;
	const gchar* _tmp31_ = NULL;
	xmlAttr* _tmp32_ = NULL;
	xmlAttr* _tmp33_ = NULL;
	xmlAttr* _tmp34_ = NULL;
	xmlNs* _tmp35_ = NULL;
	GXmlGDocument* _tmp43_ = NULL;
	xmlAttr* _tmp44_ = NULL;
	GXmlGAttribute* _tmp45_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	g_return_val_if_fail (key != NULL, NULL);
	_tmp0_ = self->priv->_node;
	if (_tmp0_ == NULL) {
		result = NULL;
		return result;
	}
	_tmp1_ = key;
	_tmp2_ = string_contains (_tmp1_, ":");
	if (_tmp2_) {
		gchar** pp = NULL;
		const gchar* _tmp3_ = NULL;
		gchar** _tmp4_ = NULL;
		gchar** _tmp5_ = NULL;
		gint pp_length1 = 0;
		gint _pp_size_ = 0;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
		xmlAttr* ps = NULL;
		xmlNode* _tmp7_ = NULL;
		xmlAttr* _tmp8_ = NULL;
		gchar* prefix = NULL;
		gchar** _tmp9_ = NULL;
		gint _tmp9__length1 = 0;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* n = NULL;
		gchar** _tmp12_ = NULL;
		gint _tmp12__length1 = 0;
		const gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		_tmp3_ = key;
		_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, ":", 0);
		pp = _tmp5_;
		pp_length1 = _vala_array_length (_tmp4_);
		_pp_size_ = pp_length1;
		_tmp6_ = pp;
		_tmp6__length1 = pp_length1;
		if (_tmp6__length1 != 2) {
			result = NULL;
			pp = (_vala_array_free (pp, pp_length1, (GDestroyNotify) g_free), NULL);
			return result;
		}
		_tmp7_ = self->priv->_node;
		_tmp8_ = _tmp7_->properties;
		ps = _tmp8_;
		_tmp9_ = pp;
		_tmp9__length1 = pp_length1;
		_tmp10_ = _tmp9_[0];
		_tmp11_ = g_strdup (_tmp10_);
		prefix = _tmp11_;
		_tmp12_ = pp;
		_tmp12__length1 = pp_length1;
		_tmp13_ = _tmp12_[1];
		_tmp14_ = g_strdup (_tmp13_);
		n = _tmp14_;
		while (TRUE) {
			xmlAttr* _tmp15_ = NULL;
			xmlAttr* _tmp16_ = NULL;
			const gchar* _tmp17_ = NULL;
			const gchar* _tmp18_ = NULL;
			xmlAttr* _tmp28_ = NULL;
			xmlAttr* _tmp29_ = NULL;
			_tmp15_ = ps;
			if (!(_tmp15_ != NULL)) {
				break;
			}
			_tmp16_ = ps;
			_tmp17_ = _tmp16_->name;
			_tmp18_ = n;
			if (g_strcmp0 (_tmp17_, _tmp18_) == 0) {
				xmlAttr* _tmp19_ = NULL;
				xmlNs* _tmp20_ = NULL;
				xmlAttr* _tmp21_ = NULL;
				xmlNs* _tmp22_ = NULL;
				const gchar* _tmp23_ = NULL;
				const gchar* _tmp24_ = NULL;
				_tmp19_ = ps;
				_tmp20_ = _tmp19_->ns;
				if (_tmp20_ == NULL) {
					continue;
				}
				_tmp21_ = ps;
				_tmp22_ = _tmp21_->ns;
				_tmp23_ = _tmp22_->prefix;
				_tmp24_ = prefix;
				if (g_strcmp0 (_tmp23_, _tmp24_) == 0) {
					GXmlGDocument* _tmp25_ = NULL;
					xmlAttr* _tmp26_ = NULL;
					GXmlGAttribute* _tmp27_ = NULL;
					_tmp25_ = self->priv->_doc;
					_tmp26_ = ps;
					_tmp27_ = gxml_gattribute_new (_tmp25_, _tmp26_);
					result = (GXmlNode*) _tmp27_;
					_g_free0 (n);
					_g_free0 (prefix);
					pp = (_vala_array_free (pp, pp_length1, (GDestroyNotify) g_free), NULL);
					return result;
				}
			}
			_tmp28_ = ps;
			_tmp29_ = _tmp28_->next;
			ps = _tmp29_;
		}
		_g_free0 (n);
		_g_free0 (prefix);
		pp = (_vala_array_free (pp, pp_length1, (GDestroyNotify) g_free), NULL);
	}
	_tmp30_ = self->priv->_node;
	_tmp31_ = key;
	_tmp32_ = xmlHasProp (_tmp30_, (xmlChar*) _tmp31_);
	p = _tmp32_;
	_tmp33_ = p;
	if (_tmp33_ == NULL) {
		result = NULL;
		return result;
	}
	_tmp34_ = p;
	_tmp35_ = _tmp34_->ns;
	if (_tmp35_ != NULL) {
		xmlAttr* npns = NULL;
		xmlNode* _tmp36_ = NULL;
		const gchar* _tmp37_ = NULL;
		xmlAttr* _tmp38_ = NULL;
		xmlAttr* _tmp39_ = NULL;
		_tmp36_ = self->priv->_node;
		_tmp37_ = key;
		_tmp38_ = xmlHasNsProp (_tmp36_, (xmlChar*) _tmp37_, (xmlChar*) NULL);
		npns = _tmp38_;
		_tmp39_ = npns;
		if (_tmp39_ != NULL) {
			GXmlGDocument* _tmp40_ = NULL;
			xmlAttr* _tmp41_ = NULL;
			GXmlGAttribute* _tmp42_ = NULL;
			_tmp40_ = self->priv->_doc;
			_tmp41_ = npns;
			_tmp42_ = gxml_gattribute_new (_tmp40_, _tmp41_);
			result = (GXmlNode*) _tmp42_;
			return result;
		}
	}
	_tmp43_ = self->priv->_doc;
	_tmp44_ = p;
	_tmp45_ = gxml_gattribute_new (_tmp43_, _tmp44_);
	result = (GXmlNode*) _tmp45_;
	return result;
}


static gboolean gxml_ghash_map_attr_real_has (GeeAbstractMap* base, const gchar* key, GXmlNode* value) {
	GXmlGHashMapAttr * self;
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	self = (GXmlGHashMapAttr*) base;
	g_return_val_if_fail (key != NULL, FALSE);
	g_return_val_if_fail (value != NULL, FALSE);
	_tmp0_ = key;
	_tmp1_ = gee_abstract_map_has_key ((GeeAbstractMap*) self, _tmp0_);
	result = _tmp1_;
	return result;
}


static gboolean gxml_ghash_map_attr_real_has_key (GeeAbstractMap* base, const gchar* key) {
	GXmlGHashMapAttr * self;
	gboolean result = FALSE;
	xmlNode* _tmp0_ = NULL;
	xmlAttr* p = NULL;
	xmlNode* _tmp1_ = NULL;
	xmlAttr* _tmp2_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	g_return_val_if_fail (key != NULL, FALSE);
	_tmp0_ = self->priv->_node;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->_node;
	_tmp2_ = _tmp1_->properties;
	p = _tmp2_;
	while (TRUE) {
		xmlAttr* _tmp3_ = NULL;
		xmlAttr* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		_tmp3_ = p;
		if (!(_tmp3_ != NULL)) {
			break;
		}
		_tmp4_ = p;
		_tmp5_ = _tmp4_->name;
		_tmp6_ = key;
		if (g_strcmp0 (_tmp5_, _tmp6_) == 0) {
			result = TRUE;
			return result;
		}
	}
	result = FALSE;
	return result;
}


static GeeMapIterator* gxml_ghash_map_attr_real_map_iterator (GeeAbstractMap* base) {
	GXmlGHashMapAttr * self;
	GeeMapIterator* result = NULL;
	GXmlGDocument* _tmp0_ = NULL;
	xmlNode* _tmp1_ = NULL;
	GXmlGHashMapAttrIterator* _tmp2_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	_tmp0_ = self->priv->_doc;
	_tmp1_ = self->priv->_node;
	_tmp2_ = gxml_ghash_map_attr_iterator_new (_tmp0_, _tmp1_);
	result = (GeeMapIterator*) _tmp2_;
	return result;
}


static void gxml_ghash_map_attr_real_set (GeeAbstractMap* base, const gchar* key, GXmlNode* value) {
	GXmlGHashMapAttr * self;
	xmlNode* _tmp0_ = NULL;
	xmlNode* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GXmlNode* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	g_return_if_fail (key != NULL);
	g_return_if_fail (value != NULL);
	_tmp0_ = self->priv->_node;
	if (_tmp0_ == NULL) {
		return;
	}
	_tmp1_ = self->priv->_node;
	_tmp2_ = key;
	_tmp3_ = value;
	_tmp4_ = gxml_node_get_value (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = _tmp5_;
	xmlNewProp (_tmp1_, (xmlChar*) _tmp2_, (xmlChar*) _tmp6_);
	_g_free0 (_tmp6_);
}


static gboolean gxml_ghash_map_attr_real_unset (GeeAbstractMap* base, const gchar* key, GXmlNode** value) {
	GXmlGHashMapAttr * self;
	GXmlNode* _vala_value = NULL;
	gboolean result = FALSE;
	xmlNode* _tmp0_ = NULL;
	xmlAttr* p = NULL;
	xmlNode* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	xmlAttr* _tmp3_ = NULL;
	xmlAttr* _tmp4_ = NULL;
	xmlAttr* _tmp5_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	g_return_val_if_fail (key != NULL, FALSE);
	_tmp0_ = self->priv->_node;
	if (_tmp0_ == NULL) {
		result = FALSE;
		if (value) {
			*value = _vala_value;
		} else {
			_g_object_unref0 (_vala_value);
		}
		return result;
	}
	_tmp1_ = self->priv->_node;
	_tmp2_ = key;
	_tmp3_ = xmlHasProp (_tmp1_, (xmlChar*) _tmp2_);
	p = _tmp3_;
	_tmp4_ = p;
	if (_tmp4_ == NULL) {
		result = FALSE;
		if (value) {
			*value = _vala_value;
		} else {
			_g_object_unref0 (_vala_value);
		}
		return result;
	}
	_tmp5_ = p;
	xmlRemoveProp (_tmp5_);
	_g_object_unref0 (_vala_value);
	_vala_value = NULL;
	result = TRUE;
	if (value) {
		*value = _vala_value;
	} else {
		_g_object_unref0 (_vala_value);
	}
	return result;
}


static GeeSet* gxml_ghash_map_attr_real_get_entries (GeeAbstractMap* base) {
	GeeSet* result;
	GXmlGHashMapAttr* self;
	GeeHashSet* l = NULL;
	GeeHashSet* _tmp0_ = NULL;
	xmlNode* _tmp1_ = NULL;
	xmlAttr* p = NULL;
	xmlNode* _tmp2_ = NULL;
	xmlAttr* _tmp3_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	_tmp0_ = gee_hash_set_new (GXML_GHASH_MAP_ATTR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
	l = _tmp0_;
	_tmp1_ = self->priv->_node;
	if (_tmp1_ == NULL) {
		result = (GeeSet*) l;
		return result;
	}
	_tmp2_ = self->priv->_node;
	_tmp3_ = _tmp2_->properties;
	p = _tmp3_;
	while (TRUE) {
		xmlAttr* _tmp4_ = NULL;
		GXmlGHashMapAttrEntry* e = NULL;
		GXmlGDocument* _tmp5_ = NULL;
		xmlAttr* _tmp6_ = NULL;
		GXmlGHashMapAttrEntry* _tmp7_ = NULL;
		GeeHashSet* _tmp8_ = NULL;
		GXmlGHashMapAttrEntry* _tmp9_ = NULL;
		xmlAttr* _tmp10_ = NULL;
		xmlAttr* _tmp11_ = NULL;
		_tmp4_ = p;
		if (!(_tmp4_ != NULL)) {
			break;
		}
		_tmp5_ = self->priv->_doc;
		_tmp6_ = p;
		_tmp7_ = gxml_ghash_map_attr_entry_new (_tmp5_, _tmp6_);
		e = _tmp7_;
		_tmp8_ = l;
		_tmp9_ = e;
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp8_, _tmp9_);
		_tmp10_ = p;
		_tmp11_ = _tmp10_->next;
		p = _tmp11_;
		_g_object_unref0 (e);
	}
	result = (GeeSet*) l;
	return result;
}


static GeeSet* gxml_ghash_map_attr_real_get_keys (GeeAbstractMap* base) {
	GeeSet* result;
	GXmlGHashMapAttr* self;
	GeeHashSet* l = NULL;
	GeeHashSet* _tmp0_ = NULL;
	xmlNode* _tmp1_ = NULL;
	xmlAttr* p = NULL;
	xmlNode* _tmp2_ = NULL;
	xmlAttr* _tmp3_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	_tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
	l = _tmp0_;
	_tmp1_ = self->priv->_node;
	if (_tmp1_ == NULL) {
		result = (GeeSet*) l;
		return result;
	}
	_tmp2_ = self->priv->_node;
	_tmp3_ = _tmp2_->properties;
	p = _tmp3_;
	while (TRUE) {
		xmlAttr* _tmp4_ = NULL;
		GeeHashSet* _tmp5_ = NULL;
		xmlAttr* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		_tmp4_ = p;
		if (!(_tmp4_ != NULL)) {
			break;
		}
		_tmp5_ = l;
		_tmp6_ = p;
		_tmp7_ = _tmp6_->name;
		_tmp8_ = g_strdup (_tmp7_);
		_tmp9_ = _tmp8_;
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp9_);
		_g_free0 (_tmp9_);
	}
	result = (GeeSet*) l;
	return result;
}


static gboolean gxml_ghash_map_attr_real_get_read_only (GeeAbstractMap* base) {
	gboolean result;
	GXmlGHashMapAttr* self;
	self = (GXmlGHashMapAttr*) base;
	result = FALSE;
	return result;
}


static gint gxml_ghash_map_attr_real_get_size (GeeAbstractMap* base) {
	gint result;
	GXmlGHashMapAttr* self;
	xmlAttr* p = NULL;
	xmlNode* _tmp0_ = NULL;
	xmlAttr* _tmp1_ = NULL;
	gint i = 0;
	gint _tmp6_ = 0;
	self = (GXmlGHashMapAttr*) base;
	_tmp0_ = self->priv->_node;
	_tmp1_ = _tmp0_->properties;
	p = _tmp1_;
	i = 0;
	while (TRUE) {
		xmlAttr* _tmp2_ = NULL;
		xmlAttr* _tmp3_ = NULL;
		xmlAttr* _tmp4_ = NULL;
		gint _tmp5_ = 0;
		_tmp2_ = p;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = p;
		_tmp4_ = _tmp3_->next;
		p = _tmp4_;
		_tmp5_ = i;
		i = _tmp5_ + 1;
	}
	_tmp6_ = i;
	result = _tmp6_;
	return result;
}


static GeeCollection* gxml_ghash_map_attr_real_get_values (GeeAbstractMap* base) {
	GeeCollection* result;
	GXmlGHashMapAttr* self;
	GeeArrayList* l = NULL;
	GeeArrayList* _tmp0_ = NULL;
	xmlAttr* p = NULL;
	xmlNode* _tmp1_ = NULL;
	xmlAttr* _tmp2_ = NULL;
	self = (GXmlGHashMapAttr*) base;
	_tmp0_ = gee_array_list_new (GXML_TYPE_NODE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
	l = _tmp0_;
	_tmp1_ = self->priv->_node;
	_tmp2_ = _tmp1_->properties;
	p = _tmp2_;
	while (TRUE) {
		xmlAttr* _tmp3_ = NULL;
		GeeArrayList* _tmp4_ = NULL;
		GXmlGDocument* _tmp5_ = NULL;
		xmlAttr* _tmp6_ = NULL;
		GXmlGAttribute* _tmp7_ = NULL;
		GXmlGAttribute* _tmp8_ = NULL;
		xmlAttr* _tmp9_ = NULL;
		xmlAttr* _tmp10_ = NULL;
		_tmp3_ = p;
		if (!(_tmp3_ != NULL)) {
			break;
		}
		_tmp4_ = l;
		_tmp5_ = self->priv->_doc;
		_tmp6_ = p;
		_tmp7_ = gxml_gattribute_new (_tmp5_, _tmp6_);
		_tmp8_ = _tmp7_;
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp4_, (GXmlNode*) _tmp8_);
		_g_object_unref0 (_tmp8_);
		_tmp9_ = p;
		_tmp10_ = _tmp9_->next;
		p = _tmp10_;
	}
	result = (GeeCollection*) l;
	return result;
}


GXmlGHashMapAttrEntry* gxml_ghash_map_attr_entry_construct (GType object_type, GXmlGDocument* doc, xmlAttr* attr) {
	GXmlGHashMapAttrEntry * self = NULL;
	xmlAttr* _tmp0_ = NULL;
	GXmlGDocument* _tmp1_ = NULL;
	GXmlGDocument* _tmp2_ = NULL;
	GXmlGDocument* _tmp3_ = NULL;
	xmlAttr* _tmp4_ = NULL;
	GXmlGAttribute* _tmp5_ = NULL;
	g_return_val_if_fail (doc != NULL, NULL);
	self = (GXmlGHashMapAttrEntry*) gee_map_entry_construct (object_type, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GXML_TYPE_NODE, (GBoxedCopyFunc) g_object_ref, g_object_unref);
	_tmp0_ = attr;
	self->priv->_attr = _tmp0_;
	_tmp1_ = doc;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (self->priv->_doc);
	self->priv->_doc = _tmp2_;
	_tmp3_ = self->priv->_doc;
	_tmp4_ = self->priv->_attr;
	_tmp5_ = gxml_gattribute_new (_tmp3_, _tmp4_);
	_g_object_unref0 (self->priv->oattr);
	self->priv->oattr = _tmp5_;
	return self;
}


GXmlGHashMapAttrEntry* gxml_ghash_map_attr_entry_new (GXmlGDocument* doc, xmlAttr* attr) {
	return gxml_ghash_map_attr_entry_construct (GXML_GHASH_MAP_ATTR_TYPE_ENTRY, doc, attr);
}


static const gchar* gxml_ghash_map_attr_entry_real_get_key (GeeMapEntry* base) {
	const gchar* result;
	GXmlGHashMapAttrEntry* self;
	xmlAttr* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	self = (GXmlGHashMapAttrEntry*) base;
	_tmp0_ = self->priv->_attr;
	_tmp1_ = _tmp0_->name;
	result = _tmp1_;
	return result;
}


static gboolean gxml_ghash_map_attr_entry_real_get_read_only (GeeMapEntry* base) {
	gboolean result;
	GXmlGHashMapAttrEntry* self;
	self = (GXmlGHashMapAttrEntry*) base;
	result = TRUE;
	return result;
}


static GXmlNode* gxml_ghash_map_attr_entry_real_get_value (GeeMapEntry* base) {
	GXmlNode* result;
	GXmlGHashMapAttrEntry* self;
	GXmlGAttribute* _tmp0_ = NULL;
	self = (GXmlGHashMapAttrEntry*) base;
	_tmp0_ = self->priv->oattr;
	result = (GXmlNode*) _tmp0_;
	return result;
}


static void gxml_ghash_map_attr_entry_real_set_value (GeeMapEntry* base, GXmlNode* value) {
	GXmlGHashMapAttrEntry* self;
	self = (GXmlGHashMapAttrEntry*) base;
	g_object_notify ((GObject *) self, "value");
}


static void gxml_ghash_map_attr_entry_class_init (GXmlGHashMapAttrEntryClass * klass) {
	gxml_ghash_map_attr_entry_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GXmlGHashMapAttrEntryPrivate));
	GEE_MAP_ENTRY_CLASS (klass)->get_key = gxml_ghash_map_attr_entry_real_get_key;
	GEE_MAP_ENTRY_CLASS (klass)->get_read_only = gxml_ghash_map_attr_entry_real_get_read_only;
	GEE_MAP_ENTRY_CLASS (klass)->get_value = gxml_ghash_map_attr_entry_real_get_value;
	GEE_MAP_ENTRY_CLASS (klass)->set_value = gxml_ghash_map_attr_entry_real_set_value;
	G_OBJECT_CLASS (klass)->get_property = _vala_gxml_ghash_map_attr_entry_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gxml_ghash_map_attr_entry_set_property;
	G_OBJECT_CLASS (klass)->finalize = gxml_ghash_map_attr_entry_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_GHASH_MAP_ATTR_ENTRY_KEY, g_param_spec_string ("key", "key", "key", 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_GHASH_MAP_ATTR_ENTRY_READ_ONLY, g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, 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_GHASH_MAP_ATTR_ENTRY_VALUE, g_param_spec_object ("value", "value", "value", GXML_TYPE_NODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void gxml_ghash_map_attr_entry_instance_init (GXmlGHashMapAttrEntry * self) {
	self->priv = GXML_GHASH_MAP_ATTR_ENTRY_GET_PRIVATE (self);
}


static void gxml_ghash_map_attr_entry_finalize (GObject* obj) {
	GXmlGHashMapAttrEntry * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GXML_GHASH_MAP_ATTR_TYPE_ENTRY, GXmlGHashMapAttrEntry);
	_g_object_unref0 (self->priv->_doc);
	_g_object_unref0 (self->priv->oattr);
	G_OBJECT_CLASS (gxml_ghash_map_attr_entry_parent_class)->finalize (obj);
}


GType gxml_ghash_map_attr_entry_get_type (void) {
	static volatile gsize gxml_ghash_map_attr_entry_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_ghash_map_attr_entry_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GXmlGHashMapAttrEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_ghash_map_attr_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GXmlGHashMapAttrEntry), 0, (GInstanceInitFunc) gxml_ghash_map_attr_entry_instance_init, NULL };
		GType gxml_ghash_map_attr_entry_type_id;
		gxml_ghash_map_attr_entry_type_id = g_type_register_static (GEE_MAP_TYPE_ENTRY, "GXmlGHashMapAttrEntry", &g_define_type_info, 0);
		g_once_init_leave (&gxml_ghash_map_attr_entry_type_id__volatile, gxml_ghash_map_attr_entry_type_id);
	}
	return gxml_ghash_map_attr_entry_type_id__volatile;
}


static void _vala_gxml_ghash_map_attr_entry_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GXmlGHashMapAttrEntry * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_GHASH_MAP_ATTR_TYPE_ENTRY, GXmlGHashMapAttrEntry);
	switch (property_id) {
		case GXML_GHASH_MAP_ATTR_ENTRY_KEY:
		g_value_set_string (value, gee_map_entry_get_key ((GeeMapEntry*) self));
		break;
		case GXML_GHASH_MAP_ATTR_ENTRY_READ_ONLY:
		g_value_set_boolean (value, gee_map_entry_get_read_only ((GeeMapEntry*) self));
		break;
		case GXML_GHASH_MAP_ATTR_ENTRY_VALUE:
		g_value_set_object (value, gee_map_entry_get_value ((GeeMapEntry*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_gxml_ghash_map_attr_entry_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GXmlGHashMapAttrEntry * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_GHASH_MAP_ATTR_TYPE_ENTRY, GXmlGHashMapAttrEntry);
	switch (property_id) {
		case GXML_GHASH_MAP_ATTR_ENTRY_VALUE:
		gee_map_entry_set_value ((GeeMapEntry*) self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


GXmlGHashMapAttrIterator* gxml_ghash_map_attr_iterator_construct (GType object_type, GXmlGDocument* doc, xmlNode* node) {
	GXmlGHashMapAttrIterator * self = NULL;
	xmlNode* _tmp0_ = NULL;
	GXmlGDocument* _tmp1_ = NULL;
	GXmlGDocument* _tmp2_ = NULL;
	g_return_val_if_fail (doc != NULL, NULL);
	self = (GXmlGHashMapAttrIterator*) g_object_new (object_type, NULL);
	_tmp0_ = node;
	self->priv->_node = _tmp0_;
	self->priv->_current = NULL;
	_tmp1_ = doc;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (self->priv->_doc);
	self->priv->_doc = _tmp2_;
	return self;
}


GXmlGHashMapAttrIterator* gxml_ghash_map_attr_iterator_new (GXmlGDocument* doc, xmlNode* node) {
	return gxml_ghash_map_attr_iterator_construct (GXML_GHASH_MAP_ATTR_TYPE_ITERATOR, doc, node);
}


static gchar* gxml_ghash_map_attr_iterator_real_get_key (GeeMapIterator* base) {
	GXmlGHashMapAttrIterator * self;
	gchar* result = NULL;
	xmlAttr* _tmp0_ = NULL;
	self = (GXmlGHashMapAttrIterator*) base;
	_tmp0_ = self->priv->_current;
	if (_tmp0_ != NULL) {
		xmlAttr* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		_tmp1_ = self->priv->_current;
		_tmp2_ = _tmp1_->name;
		_tmp3_ = g_strdup (_tmp2_);
		_tmp4_ = _tmp3_;
		_g_free0 (_tmp4_);
	}
	result = NULL;
	return result;
}


static GXmlNode* gxml_ghash_map_attr_iterator_real_get_value (GeeMapIterator* base) {
	GXmlGHashMapAttrIterator * self;
	GXmlNode* result = NULL;
	GXmlGDocument* _tmp0_ = NULL;
	xmlAttr* _tmp1_ = NULL;
	GXmlGAttribute* _tmp2_ = NULL;
	self = (GXmlGHashMapAttrIterator*) base;
	_tmp0_ = self->priv->_doc;
	_tmp1_ = self->priv->_current;
	_tmp2_ = gxml_gattribute_new (_tmp0_, _tmp1_);
	result = (GXmlNode*) _tmp2_;
	return result;
}


static gboolean gxml_ghash_map_attr_iterator_real_has_next (GeeMapIterator* base) {
	GXmlGHashMapAttrIterator * self;
	gboolean result = FALSE;
	xmlNode* _tmp0_ = NULL;
	xmlAttr* _tmp1_ = NULL;
	xmlAttr* _tmp2_ = NULL;
	self = (GXmlGHashMapAttrIterator*) base;
	_tmp0_ = self->priv->_node;
	_tmp1_ = _tmp0_->properties;
	if (_tmp1_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp2_ = self->priv->_current;
	if (_tmp2_ != NULL) {
		xmlAttr* _tmp3_ = NULL;
		xmlAttr* _tmp4_ = NULL;
		_tmp3_ = self->priv->_current;
		_tmp4_ = _tmp3_->next;
		if (_tmp4_ == NULL) {
			result = FALSE;
			return result;
		}
	}
	result = TRUE;
	return result;
}


static gboolean gxml_ghash_map_attr_iterator_real_next (GeeMapIterator* base) {
	GXmlGHashMapAttrIterator * self;
	gboolean result = FALSE;
	xmlNode* _tmp0_ = NULL;
	xmlAttr* _tmp1_ = NULL;
	xmlAttr* _tmp2_ = NULL;
	xmlAttr* _tmp5_ = NULL;
	xmlAttr* _tmp6_ = NULL;
	xmlAttr* _tmp7_ = NULL;
	xmlAttr* _tmp8_ = NULL;
	self = (GXmlGHashMapAttrIterator*) base;
	_tmp0_ = self->priv->_node;
	_tmp1_ = _tmp0_->properties;
	if (_tmp1_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp2_ = self->priv->_current;
	if (_tmp2_ == NULL) {
		xmlNode* _tmp3_ = NULL;
		xmlAttr* _tmp4_ = NULL;
		_tmp3_ = self->priv->_node;
		_tmp4_ = _tmp3_->properties;
		self->priv->_current = _tmp4_;
	}
	_tmp5_ = self->priv->_current;
	_tmp6_ = _tmp5_->next;
	if (_tmp6_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp7_ = self->priv->_current;
	_tmp8_ = _tmp7_->next;
	self->priv->_current = _tmp8_;
	result = TRUE;
	return result;
}


static void gxml_ghash_map_attr_iterator_real_set_value (GeeMapIterator* base, GXmlNode* value) {
	GXmlGHashMapAttrIterator * self;
	xmlAttr* _tmp0_ = NULL;
	xmlAttr* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GXmlNode* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	self = (GXmlGHashMapAttrIterator*) base;
	g_return_if_fail (value != NULL);
	_tmp0_ = self->priv->_current;
	if (_tmp0_ == NULL) {
		return;
	}
	_tmp1_ = self->priv->_current;
	_tmp2_ = _tmp1_->name;
	_tmp3_ = value;
	_tmp4_ = gxml_node_get_name (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = _tmp5_;
	_tmp7_ = g_strcmp0 (_tmp2_, _tmp6_) == 0;
	_g_free0 (_tmp6_);
	if (_tmp7_) {
		xmlAttr* p = NULL;
		xmlNode* _tmp8_ = NULL;
		xmlAttr* _tmp9_ = NULL;
		_tmp8_ = self->priv->_node;
		_tmp9_ = _tmp8_->properties;
		p = _tmp9_;
		while (TRUE) {
			xmlAttr* _tmp10_ = NULL;
			xmlAttr* _tmp11_ = NULL;
			const gchar* _tmp12_ = NULL;
			GXmlNode* _tmp13_ = NULL;
			gchar* _tmp14_ = NULL;
			gchar* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
			gboolean _tmp17_ = FALSE;
			_tmp10_ = p;
			if (!(_tmp10_ != NULL)) {
				break;
			}
			_tmp11_ = p;
			_tmp12_ = _tmp11_->name;
			_tmp13_ = value;
			_tmp14_ = gxml_node_get_name (_tmp13_);
			_tmp15_ = _tmp14_;
			_tmp16_ = _tmp15_;
			_tmp17_ = g_strcmp0 (_tmp12_, _tmp16_) == 0;
			_g_free0 (_tmp16_);
			if (_tmp17_) {
				xmlNode* _tmp18_ = NULL;
				GXmlNode* _tmp19_ = NULL;
				gchar* _tmp20_ = NULL;
				gchar* _tmp21_ = NULL;
				gchar* _tmp22_ = NULL;
				GXmlNode* _tmp23_ = NULL;
				gchar* _tmp24_ = NULL;
				gchar* _tmp25_ = NULL;
				gchar* _tmp26_ = NULL;
				_tmp18_ = self->priv->_node;
				_tmp19_ = value;
				_tmp20_ = gxml_node_get_name (_tmp19_);
				_tmp21_ = _tmp20_;
				_tmp22_ = _tmp21_;
				_tmp23_ = value;
				_tmp24_ = gxml_node_get_value (_tmp23_);
				_tmp25_ = _tmp24_;
				_tmp26_ = _tmp25_;
				xmlSetProp (_tmp18_, (xmlChar*) _tmp22_, (xmlChar*) _tmp26_);
				_g_free0 (_tmp26_);
				_g_free0 (_tmp22_);
			}
		}
	}
}


static void gxml_ghash_map_attr_iterator_real_unset (GeeMapIterator* base) {
	GXmlGHashMapAttrIterator * self;
	xmlAttr* _tmp0_ = NULL;
	xmlNode* _tmp1_ = NULL;
	xmlAttr* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	self = (GXmlGHashMapAttrIterator*) base;
	_tmp0_ = self->priv->_current;
	if (_tmp0_ == NULL) {
		return;
	}
	_tmp1_ = self->priv->_node;
	_tmp2_ = self->priv->_current;
	_tmp3_ = _tmp2_->name;
	xmlSetProp (_tmp1_, (xmlChar*) _tmp3_, (xmlChar*) NULL);
}


static gboolean gxml_ghash_map_attr_iterator_real_get_mutable (GeeMapIterator* base) {
	gboolean result;
	GXmlGHashMapAttrIterator* self;
	self = (GXmlGHashMapAttrIterator*) base;
	result = FALSE;
	return result;
}


static gboolean gxml_ghash_map_attr_iterator_real_get_read_only (GeeMapIterator* base) {
	gboolean result;
	GXmlGHashMapAttrIterator* self;
	self = (GXmlGHashMapAttrIterator*) base;
	result = FALSE;
	return result;
}


static gboolean gxml_ghash_map_attr_iterator_real_get_valid (GeeMapIterator* base) {
	gboolean result;
	GXmlGHashMapAttrIterator* self;
	xmlAttr* _tmp0_ = NULL;
	self = (GXmlGHashMapAttrIterator*) base;
	_tmp0_ = self->priv->_current;
	result = _tmp0_ != NULL;
	return result;
}


static void gxml_ghash_map_attr_iterator_class_init (GXmlGHashMapAttrIteratorClass * klass) {
	gxml_ghash_map_attr_iterator_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GXmlGHashMapAttrIteratorPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_gxml_ghash_map_attr_iterator_get_property;
	G_OBJECT_CLASS (klass)->finalize = gxml_ghash_map_attr_iterator_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_GHASH_MAP_ATTR_ITERATOR_MUTABLE, g_param_spec_boolean ("mutable", "mutable", "mutable", FALSE, 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_GHASH_MAP_ATTR_ITERATOR_READ_ONLY, g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, 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_GHASH_MAP_ATTR_ITERATOR_VALID, g_param_spec_boolean ("valid", "valid", "valid", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}


static GType gxml_ghash_map_attr_iterator_gee_map_iterator_get_k_type (GXmlGHashMapAttrIterator* self) {
	return G_TYPE_STRING;
}


static GBoxedCopyFunc gxml_ghash_map_attr_iterator_gee_map_iterator_get_k_dup_func (GXmlGHashMapAttrIterator* self) {
	return g_strdup;
}


static GDestroyNotify gxml_ghash_map_attr_iterator_gee_map_iterator_get_k_destroy_func (GXmlGHashMapAttrIterator* self) {
	return g_free;
}


static GType gxml_ghash_map_attr_iterator_gee_map_iterator_get_v_type (GXmlGHashMapAttrIterator* self) {
	return GXML_TYPE_NODE;
}


static GBoxedCopyFunc gxml_ghash_map_attr_iterator_gee_map_iterator_get_v_dup_func (GXmlGHashMapAttrIterator* self) {
	return g_object_ref;
}


static GDestroyNotify gxml_ghash_map_attr_iterator_gee_map_iterator_get_v_destroy_func (GXmlGHashMapAttrIterator* self) {
	return g_object_unref;
}


static void gxml_ghash_map_attr_iterator_gee_map_iterator_interface_init (GeeMapIteratorIface * iface) {
	gxml_ghash_map_attr_iterator_gee_map_iterator_parent_iface = g_type_interface_peek_parent (iface);
	iface->get_key = (gpointer (*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_real_get_key;
	iface->get_value = (gpointer (*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_real_get_value;
	iface->has_next = (gboolean (*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_real_has_next;
	iface->next = (gboolean (*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_real_next;
	iface->set_value = (void (*)(GeeMapIterator*, gconstpointer)) gxml_ghash_map_attr_iterator_real_set_value;
	iface->unset = (void (*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_real_unset;
	iface->get_k_type = (GType(*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_gee_map_iterator_get_k_type;
	iface->get_k_dup_func = (GBoxedCopyFunc(*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_gee_map_iterator_get_k_dup_func;
	iface->get_k_destroy_func = (GDestroyNotify(*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_gee_map_iterator_get_k_destroy_func;
	iface->get_v_type = (GType(*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_gee_map_iterator_get_v_type;
	iface->get_v_dup_func = (GBoxedCopyFunc(*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_gee_map_iterator_get_v_dup_func;
	iface->get_v_destroy_func = (GDestroyNotify(*)(GeeMapIterator*)) gxml_ghash_map_attr_iterator_gee_map_iterator_get_v_destroy_func;
	iface->get_mutable = gxml_ghash_map_attr_iterator_real_get_mutable;
	iface->get_read_only = gxml_ghash_map_attr_iterator_real_get_read_only;
	iface->get_valid = gxml_ghash_map_attr_iterator_real_get_valid;
}


static void gxml_ghash_map_attr_iterator_instance_init (GXmlGHashMapAttrIterator * self) {
	self->priv = GXML_GHASH_MAP_ATTR_ITERATOR_GET_PRIVATE (self);
}


static void gxml_ghash_map_attr_iterator_finalize (GObject* obj) {
	GXmlGHashMapAttrIterator * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GXML_GHASH_MAP_ATTR_TYPE_ITERATOR, GXmlGHashMapAttrIterator);
	_g_object_unref0 (self->priv->_doc);
	G_OBJECT_CLASS (gxml_ghash_map_attr_iterator_parent_class)->finalize (obj);
}


GType gxml_ghash_map_attr_iterator_get_type (void) {
	static volatile gsize gxml_ghash_map_attr_iterator_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_ghash_map_attr_iterator_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GXmlGHashMapAttrIteratorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_ghash_map_attr_iterator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GXmlGHashMapAttrIterator), 0, (GInstanceInitFunc) gxml_ghash_map_attr_iterator_instance_init, NULL };
		static const GInterfaceInfo gee_map_iterator_info = { (GInterfaceInitFunc) gxml_ghash_map_attr_iterator_gee_map_iterator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gxml_ghash_map_attr_iterator_type_id;
		gxml_ghash_map_attr_iterator_type_id = g_type_register_static (G_TYPE_OBJECT, "GXmlGHashMapAttrIterator", &g_define_type_info, 0);
		g_type_add_interface_static (gxml_ghash_map_attr_iterator_type_id, GEE_TYPE_MAP_ITERATOR, &gee_map_iterator_info);
		g_once_init_leave (&gxml_ghash_map_attr_iterator_type_id__volatile, gxml_ghash_map_attr_iterator_type_id);
	}
	return gxml_ghash_map_attr_iterator_type_id__volatile;
}


static void _vala_gxml_ghash_map_attr_iterator_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GXmlGHashMapAttrIterator * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_GHASH_MAP_ATTR_TYPE_ITERATOR, GXmlGHashMapAttrIterator);
	switch (property_id) {
		case GXML_GHASH_MAP_ATTR_ITERATOR_MUTABLE:
		g_value_set_boolean (value, gee_map_iterator_get_mutable ((GeeMapIterator*) self));
		break;
		case GXML_GHASH_MAP_ATTR_ITERATOR_READ_ONLY:
		g_value_set_boolean (value, gee_map_iterator_get_read_only ((GeeMapIterator*) self));
		break;
		case GXML_GHASH_MAP_ATTR_ITERATOR_VALID:
		g_value_set_boolean (value, gee_map_iterator_get_valid ((GeeMapIterator*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void gxml_ghash_map_attr_class_init (GXmlGHashMapAttrClass * klass) {
	gxml_ghash_map_attr_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GXmlGHashMapAttrPrivate));
	((GeeAbstractMapClass *) klass)->clear = gxml_ghash_map_attr_real_clear;
	((GeeAbstractMapClass *) klass)->get = gxml_ghash_map_attr_real_get;
	((GeeAbstractMapClass *) klass)->has = gxml_ghash_map_attr_real_has;
	((GeeAbstractMapClass *) klass)->has_key = gxml_ghash_map_attr_real_has_key;
	((GeeAbstractMapClass *) klass)->map_iterator = gxml_ghash_map_attr_real_map_iterator;
	((GeeAbstractMapClass *) klass)->set = gxml_ghash_map_attr_real_set;
	((GeeAbstractMapClass *) klass)->unset = gxml_ghash_map_attr_real_unset;
	GEE_ABSTRACT_MAP_CLASS (klass)->get_entries = gxml_ghash_map_attr_real_get_entries;
	GEE_ABSTRACT_MAP_CLASS (klass)->get_keys = gxml_ghash_map_attr_real_get_keys;
	GEE_ABSTRACT_MAP_CLASS (klass)->get_read_only = gxml_ghash_map_attr_real_get_read_only;
	GEE_ABSTRACT_MAP_CLASS (klass)->get_size = gxml_ghash_map_attr_real_get_size;
	GEE_ABSTRACT_MAP_CLASS (klass)->get_values = gxml_ghash_map_attr_real_get_values;
	G_OBJECT_CLASS (klass)->get_property = _vala_gxml_ghash_map_attr_get_property;
	G_OBJECT_CLASS (klass)->finalize = gxml_ghash_map_attr_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_GHASH_MAP_ATTR_ENTRIES, g_param_spec_object ("entries", "entries", "entries", GEE_TYPE_SET, 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_GHASH_MAP_ATTR_KEYS, g_param_spec_object ("keys", "keys", "keys", GEE_TYPE_SET, 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_GHASH_MAP_ATTR_READ_ONLY, g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, 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_GHASH_MAP_ATTR_SIZE, g_param_spec_int ("size", "size", "size", G_MININT, G_MAXINT, 0, 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_GHASH_MAP_ATTR_VALUES, g_param_spec_object ("values", "values", "values", GEE_TYPE_COLLECTION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}


static void gxml_ghash_map_attr_instance_init (GXmlGHashMapAttr * self) {
	self->priv = GXML_GHASH_MAP_ATTR_GET_PRIVATE (self);
}


static void gxml_ghash_map_attr_finalize (GObject* obj) {
	GXmlGHashMapAttr * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GXML_TYPE_GHASH_MAP_ATTR, GXmlGHashMapAttr);
	_g_object_unref0 (self->priv->_doc);
	G_OBJECT_CLASS (gxml_ghash_map_attr_parent_class)->finalize (obj);
}


GType gxml_ghash_map_attr_get_type (void) {
	static volatile gsize gxml_ghash_map_attr_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_ghash_map_attr_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GXmlGHashMapAttrClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_ghash_map_attr_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GXmlGHashMapAttr), 0, (GInstanceInitFunc) gxml_ghash_map_attr_instance_init, NULL };
		GType gxml_ghash_map_attr_type_id;
		gxml_ghash_map_attr_type_id = g_type_register_static (GEE_TYPE_ABSTRACT_MAP, "GXmlGHashMapAttr", &g_define_type_info, 0);
		g_once_init_leave (&gxml_ghash_map_attr_type_id__volatile, gxml_ghash_map_attr_type_id);
	}
	return gxml_ghash_map_attr_type_id__volatile;
}


static void _vala_gxml_ghash_map_attr_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GXmlGHashMapAttr * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_TYPE_GHASH_MAP_ATTR, GXmlGHashMapAttr);
	switch (property_id) {
		case GXML_GHASH_MAP_ATTR_ENTRIES:
		g_value_take_object (value, gee_abstract_map_get_entries ((GeeAbstractMap*) self));
		break;
		case GXML_GHASH_MAP_ATTR_KEYS:
		g_value_take_object (value, gee_abstract_map_get_keys ((GeeAbstractMap*) self));
		break;
		case GXML_GHASH_MAP_ATTR_READ_ONLY:
		g_value_set_boolean (value, gee_abstract_map_get_read_only ((GeeAbstractMap*) self));
		break;
		case GXML_GHASH_MAP_ATTR_SIZE:
		g_value_set_int (value, gee_abstract_map_get_size ((GeeAbstractMap*) self));
		break;
		case GXML_GHASH_MAP_ATTR_VALUES:
		g_value_take_object (value, gee_abstract_map_get_values ((GeeAbstractMap*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



