GXmlSerializableTreeMap

GXmlSerializableTreeMap — Serializable Framework. A GXmlSerializable objects container based on GeeTreeMap.

Functions

Types and Values

Description

It uses a key and value store implementing GeeTreeMap interface. It implements GXmlSerializable and GXmlSerializableCollection interfaces.

Functions

gxml_serializable_tree_map_deserialize_proceed ()

gboolean
gxml_serializable_tree_map_deserialize_proceed
                               (GXmlSerializableTreeMap *self);

Parameters

self

the GXmlSerializableTreeMap instance

 

gxml_serializable_tree_map_deserialized ()

gboolean
gxml_serializable_tree_map_deserialized
                               (GXmlSerializableTreeMap *self);

Parameters

self

the GXmlSerializableTreeMap instance

 

gxml_serializable_tree_map_deserialize_node ()

gboolean
gxml_serializable_tree_map_deserialize_node
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *node,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_deserialize_children ()

gboolean
gxml_serializable_tree_map_deserialize_children
                               (GXmlSerializableTreeMap *self,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_set_default_namespace ()

gboolean
gxml_serializable_tree_map_set_default_namespace
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *node);

Parameters

self

the GXmlSerializableTreeMap instance

 

node

 

 

gxml_serializable_tree_map_serialize_use_xml_node_value ()

gboolean
gxml_serializable_tree_map_serialize_use_xml_node_value
                               (GXmlSerializableTreeMap *self);

Parameters

self

the GXmlSerializableTreeMap instance

 

gxml_serializable_tree_map_property_use_nick ()

gboolean
gxml_serializable_tree_map_property_use_nick
                               (GXmlSerializableTreeMap *self);

Parameters

self

the GXmlSerializableTreeMap instance

 

gxml_serializable_tree_map_node_name ()

gchar *
gxml_serializable_tree_map_node_name (GXmlSerializableTreeMap *self);

Parameters

self

the GXmlSerializableTreeMap instance

 

gxml_serializable_tree_map_find_property_spec ()

GParamSpec *
gxml_serializable_tree_map_find_property_spec
                               (GXmlSerializableTreeMap *self,
                                const gchar *property_name);

Parameters

self

the GXmlSerializableTreeMap instance

 

property_name

 

 

gxml_serializable_tree_map_list_serializable_properties ()

GParamSpec **
gxml_serializable_tree_map_list_serializable_properties
                               (GXmlSerializableTreeMap *self,
                                int *result_length1);

Parameters

self

the GXmlSerializableTreeMap instance

 

Returns

.

[array length=result_length1]


gxml_serializable_tree_map_serialize ()

GXmlNode *
gxml_serializable_tree_map_serialize (GXmlSerializableTreeMap *self,
                                      GXmlNode *node,
                                      GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_default_serialize ()

GXmlNode *
gxml_serializable_tree_map_default_serialize
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *node,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_serialize_property ()

GXmlNode *
gxml_serializable_tree_map_serialize_property
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *element,
                                GParamSpec *prop,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

element

 

 

prop

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_default_serialize_property ()

GXmlNode *
gxml_serializable_tree_map_default_serialize_property
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *element,
                                GParamSpec *prop,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

element

 

 

prop

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_deserialize ()

gboolean
gxml_serializable_tree_map_deserialize
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *node,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_default_deserialize ()

gboolean
gxml_serializable_tree_map_default_deserialize
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *node,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_deserialize_property ()

gboolean
gxml_serializable_tree_map_deserialize_property
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *property_node,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

property_node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_default_deserialize_property ()

gboolean
gxml_serializable_tree_map_default_deserialize_property
                               (GXmlSerializableTreeMap *self,
                                GXmlNode *property_node,
                                GError **error);

Parameters

self

the GXmlSerializableTreeMap instance

 

property_node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_serializable_tree_map_new ()

GXmlSerializableTreeMap *
gxml_serializable_tree_map_new (GType k_type,
                                GBoxedCopyFunc k_dup_func,
                                GDestroyNotify k_destroy_func,
                                GType v_type,
                                GBoxedCopyFunc v_dup_func,
                                GDestroyNotify v_destroy_func);

Parameters

k_type

A GType

 

k_dup_func

A dup function for k_type

 

k_destroy_func

A destroy function for k_type

 

v_type

A GType

 

v_dup_func

A dup function for v_type

 

v_destroy_func

A destroy function for v_type

 

gxml_serializable_tree_map_get_properties ()

GParamSpec **
gxml_serializable_tree_map_get_properties
                               (GXmlSerializableTreeMap *self,
                                int *result_length1);

Get and return the current value of the "properties" property.

Parameters

self

the GXmlSerializableTreeMap instance to query

 

Returns

the value of the "properties" property


gxml_serializable_tree_map_set_properties ()

void
gxml_serializable_tree_map_set_properties
                               (GXmlSerializableTreeMap *self,
                                GParamSpec **value,
                                int value_length1);

Set the value of the "properties" property to value .

Parameters

self

the GXmlSerializableTreeMap instance to modify

 

value

the new value of the "properties" property

 

gxml_serializable_tree_map_get_ignored_serializable_properties ()

GHashTable *
gxml_serializable_tree_map_get_ignored_serializable_properties
                               (GXmlSerializableTreeMap *self);

Get and return the current value of the "ignored-serializable-properties" property.

Parameters

self

the GXmlSerializableTreeMap instance to query

 

Returns

the value of the "ignored-serializable-properties" property


gxml_serializable_tree_map_set_ignored_serializable_properties ()

void
gxml_serializable_tree_map_set_ignored_serializable_properties
                               (GXmlSerializableTreeMap *self,
                                GHashTable *value);

Set the value of the "ignored-serializable-properties" property to value .

Parameters

self

the GXmlSerializableTreeMap instance to modify

 

value

the new value of the "ignored-serializable-properties" property

 

Types and Values

GXML_TYPE_SERIALIZABLE_TREE_MAP

#define GXML_TYPE_SERIALIZABLE_TREE_MAP (gxml_serializable_tree_map_get_type ())

The type for GXmlSerializableTreeMap.


struct GXmlSerializableTreeMap

struct GXmlSerializableTreeMap {
	GeeTreeMap parent_instance;
	GXmlSerializableTreeMapPrivate * priv;
	GXmlNode* _node;
	gboolean _deserialized;
};

Serializable Framework. A GXmlSerializable objects container based on GeeTreeMap.

It uses a key and value store implementing GeeTreeMap interface. It implements GXmlSerializable and GXmlSerializableCollection interfaces.


struct GXmlSerializableTreeMapClass

struct GXmlSerializableTreeMapClass {
	GeeTreeMapClass parent_class;
	gboolean (*deserialize_proceed) (GXmlSerializableTreeMap* self);
	gboolean (*deserialized) (GXmlSerializableTreeMap* self);
	gboolean (*deserialize_node) (GXmlSerializableTreeMap* self, GXmlNode* node, GError** error);
	gboolean (*deserialize_children) (GXmlSerializableTreeMap* self, GError** error);
	gboolean (*set_default_namespace) (GXmlSerializableTreeMap* self, GXmlNode* node);
	gboolean (*serialize_use_xml_node_value) (GXmlSerializableTreeMap* self);
	gboolean (*property_use_nick) (GXmlSerializableTreeMap* self);
	gchar* (*node_name) (GXmlSerializableTreeMap* self);
	GParamSpec* (*find_property_spec) (GXmlSerializableTreeMap* self, const gchar* property_name);
	GParamSpec** (*list_serializable_properties) (GXmlSerializableTreeMap* self, int* result_length1);
	GXmlNode* (*serialize) (GXmlSerializableTreeMap* self, GXmlNode* node, GError** error);
	GXmlNode* (*serialize_property) (GXmlSerializableTreeMap* self, GXmlNode* element, GParamSpec* prop, GError** error);
	gboolean (*deserialize) (GXmlSerializableTreeMap* self, GXmlNode* node, GError** error);
	gboolean (*deserialize_property) (GXmlSerializableTreeMap* self, GXmlNode* property_node, GError** error);
};

The class structure for GXML_TYPE_SERIALIZABLE_TREE_MAP. All the fields in this structure are private and should never be accessed directly.

Members

deserialize_proceed ()

virtual method called by gxml_serializable_tree_map_deserialize_proceed()

 

deserialized ()

virtual method called by gxml_serializable_tree_map_deserialized()

 

deserialize_node ()

virtual method called by gxml_serializable_tree_map_deserialize_node()

 

deserialize_children ()

virtual method called by gxml_serializable_tree_map_deserialize_children()

 

set_default_namespace ()

virtual method called by gxml_serializable_tree_map_set_default_namespace()

 

serialize_use_xml_node_value ()

virtual method called by gxml_serializable_tree_map_serialize_use_xml_node_value()

 

property_use_nick ()

virtual method called by gxml_serializable_tree_map_property_use_nick()

 

node_name ()

virtual method called by gxml_serializable_tree_map_node_name()

 

find_property_spec ()

virtual method called by gxml_serializable_tree_map_find_property_spec()

 

list_serializable_properties ()

virtual method called by gxml_serializable_tree_map_list_serializable_properties()

 

serialize ()

virtual method called by gxml_serializable_tree_map_serialize()

 

serialize_property ()

virtual method called by gxml_serializable_tree_map_serialize_property()

 

deserialize ()

virtual method called by gxml_serializable_tree_map_deserialize()

 

deserialize_property ()

virtual method called by gxml_serializable_tree_map_deserialize_property()