HashPairedMap
Object Hierarchy:
GXml.HashPairedMap
GXml.HashPairedMap
GXml.HashPairedMap
GXml.BaseCollection
GXml.BaseCollection
GXml.BaseCollection->GXml.HashPairedMap
GLib.Object
GLib.Object
GLib.Object->GXml.BaseCollection
Gee.Traversable
Gee.Traversable
Gee.Traversable->GXml.BaseCollection
Gee.Iterable
Gee.Iterable
Gee.Iterable->GXml.BaseCollection
GXml.Collection
GXml.Collection
GXml.Collection->GXml.BaseCollection
GXml.PairedMap
GXml.PairedMap
GXml.PairedMap->GXml.HashPairedMap
Description:
public class HashPairedMap :
BaseCollection ,
PairedMap
Content:
Creation methods:
Methods:
public DomElement ? @get (string primary_key, string secondary_key)
Returns an DomElement
in the collection using given string keys.
public override void clear ()
public List <string > get_primary_keys ()
Returns list of primary keys used in collection.
public List <string > get_secondary_keys (string pkey)
Returns list of secondary keys used in collection with @pkey as
primary key.
public void initialize_element_with_keys (Element element, Type items_type, string attribute_primary_key, string attribute_secondary_key) throws Error
Convenient function to initialize a
GXml.HashMap collection, using given element, items' type and name.
public void initialize_with_keys (Type items_type, string attribute_primary_key, string attribute_secondary_key) throws Error
Convenient function to initialize a
GXml.HashMap collection, using given element, items' type and name.
public override bool validate_append (int index, DomElement element) throws Error
Validates if given element has a attribute_primary_key
and attribute_secondary_key
set, if so adds a new keys pointing to given index and returns true.
Fields:
protected string _attribute_primary_key
Element's attribute name used to refer of container's element as
primary key. You should define it at construction time our set it as a construction property.
protected string _attribute_secondary_key
Element's attribute name used to refer of container's element as
secondary key. You should define it at construction time our set it as a construction property.
protected HashMap <string ,HashMap <string ,int >> _hashtable
A hashtable with all keys as string to node's index referred. Don't
modify it manually.
Inherited Members:
All known members inherited from class GXml.BaseCollection
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GXml.PairedMap
All known members inherited from interface Gee.Traversable
@foreach
all_match
any_match
chop
element_type
filter
first_match
flat_map
fold
map
max
min
order_by
scan
stream
tee
All known members inherited from interface Gee.Iterable
All known members inherited from interface GXml.Collection