Commit b535cfca authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz
Browse files

Merge branch 'fix-misspelling' into 'master'

Fix misspellings

See merge request GNOME/gxml!13
parents 8712b698 261966ff
===============
Version 0.20.0
===============
* Transsition from pre 0.20 API, can be found at Wiki https://gitlab.gnome.org/GNOME/gxml/wikis/home
* Transition from pre 0.20 API, can be found at Wiki https://gitlab.gnome.org/GNOME/gxml/wikis/home
* API simplification (breaks)
* Revome of obsolete and deprecated API
* Remove of obsolete and deprecated API
* Meson: options renaming
* Gom* classes renamed by removing the Gom prefix (API simplification)
this means, for example: GomDocument to Document and GomElement to Element.
......@@ -100,7 +100,7 @@ Version 0.16.0
* GomDocument: Fixed get_element_by_id()
* XPath: Reimplemented write_stream_async, create_stream_async
* Gom: DocumenType write remove DTD definitions []
* Gom: Added suppòrt for DOCTYPE definitions
* Gom: Added support for DOCTYPE definitions
* Fixed lookup_namespace_uri()
* Better support of xmlns http://www.w3.org/2000/xmlns
* Fixes for Vala 0.39
......@@ -174,7 +174,7 @@ Version 0.14.2
Version 0.14.1
===============
* valadoc in not necesary to build from tarball
* valadoc is not necessary to build from tarball
* New and updated translations:
Updated Swedish by Josef Andersson <l10nl18nsweja@gmail.com>
Updated Polish by Piotr Drąg <piotrdrag@gmail.com>
......@@ -308,7 +308,7 @@ Version 0.10.0
Version 0.9.92
===============
* New contructor methods for TDocument using custome ReadTypeFunc
* New constructor methods for TDocument using custom ReadTypeFunc
* Bug fixes
* New and updated translations:
Updated Polish by Piotr Drąg <piotrdrag@gmail.com>
......@@ -371,7 +371,7 @@ API/ABI break
* API change: Removed GXml.SerializableJson and GXml.Serialization, due to they
have been unmaintained for a while now.
* API change: GXml.NodeList is now a Gee.ArrayList<GXml.Node> specialiced class for better
* API change: GXml.NodeList is now a Gee.ArrayList<GXml.Node> specialized class for better
bindings support. The old class has been renamed to GXml.xNodeList.
* API change: Most interfaces now return owned properties in order to allow implementations
......@@ -383,13 +383,13 @@ API/ABI break
* New HtmlDocument for HTML handling
* Element interface removed finalize_attr (), due it is unsed
* Element interface removed finalize_attr (), due it is unused
* Element added new get_ns_attr() for namespaced attributes
* Element implements set_ns_attr()
* xNode and derivatives enter to a maintenace status, in order
* xNode and derivatives enter to a maintenance status, in order
to be deprecated in future, some tests haven't been added
due to its internal complexity, like poor namespaces support. Is
better to relay on GNode and derivatives. DOM API will be added
......@@ -407,7 +407,7 @@ API/ABI break
Version 0.8.2
===============
* Fixed sigfault on xDocument.from_stream()
* Fixed segfault on xDocument.from_stream()
* Added test for remote file read using GLib.File
=============
......@@ -466,7 +466,7 @@ Version 0.6.0
This new version is API/ABI incompatible with 0.4 series.
Most work has been on simplifying API for Vala programers users, using interfaces and
Most work has been on simplifying API for Vala programmers users, using interfaces and
Gee classes, allowing to create new backends based or different from libxml2. This
work allowed to re-implement existing classes without radically modify API for existing
applications and makes room to improve performance and memory usage.
......@@ -474,7 +474,7 @@ applications and makes room to improve performance and memory usage.
News and changes are as follow:
* Added new interfaces to simplify implementing new backends for XML reading/writting,
* Added new interfaces to simplify implementing new backends for XML reading/writing,
containers are Gee ones.
* Renamed GXml 0.4 DOM classes to prefixing a "x", to avoid conflicts with new interfaces
......@@ -482,7 +482,7 @@ News and changes are as follow:
* GXml DOM classes, now implement new interfaces
* GXml DOM classes now implement Gee interfaces to access directly to libxml2 structures,
reducing extra processing and memory consumption when they are referenced from permament
reducing extra processing and memory consumption when they are referenced from permanent
on memory GObject classes. Reimplementing most other DOM classes to implement Gee classes
in on roadmap, to reduce memory and possibly increase performance on parsing.
......@@ -526,7 +526,7 @@ Version 0.4
=============
- Added Examples (Richard Schwarting)
- Improved Build system (Daniel Espinosa)
- Windows crosscopilation support (Daniel Espinosa)
- Windows cross-compilation support (Daniel Espinosa)
- Added/Improved Serialization Framework (Richard Schwarting, Daniel Espinosa)
- Added missing License (Richard Schwarting)
- Renamed DomNode to Node (Richard Schwarting)
......
......@@ -89,7 +89,7 @@ Writing documentation
- Documentation for overriding functions/methods is shown in
valadoc, but not in gtkdoc. For gtkdoc, you can only go up to the
original superclass to see what's been available, even if it's
been overriden. (Would we want this to be any different for
been overridden. (Would we want this to be any different for
gtkdoc?)
- We don't get an Object Hierarchy in our gtkdoc with valadoc :(
......@@ -101,7 +101,7 @@ Writing documentation
reverse.
TODO: write a patch to valadoc :D
- Multiline descriptions will only have the first line appear in
- Multi-line descriptions will only have the first line appear in
valadoc.
- For the gtkdoc or valadoc to be visible in devhelp and you're installing into
......@@ -109,6 +109,6 @@ Writing documentation
installed gtk-doc in /usr/share/gtk-doc/html/. For example,
$ ln -s ~/.local/share/gtk-doc/html/gxml /usr/share/gtk-doc/html
- Valadoc's documentation use JavaScript to naviate over inherited
- Valadoc's documentation use JavaScript to navigate over inherited
methods and properties, but DevHelp have no support for that.
TODO: write a patch to DevHelp to support Valadoc's JavaScript
......@@ -15,5 +15,5 @@
<title>SerializableObjectModel implementation</title>
<p><code>SerializableObjectModel</code> is a class implementing <code>Serializable</code> interface. This implementation consider each object as a XML node, represented in GXml as a <code>GXml.Element</code> and its properties is represented by <code>GXml.Attr</code>. Each property, if it is a <code>Serializable</code> object, is represented as child nodes.</p>
<p>If a object's value property must be represented as a XML node content, then it requires to override <code>serialize_use_xml_node_value()</code> and set value at <code>serialized_xml_node_value</code>, as decribed at <link type="topic" xref="gxml-serializable#gxml-serializable-node-contents">Node content</link>.</p>
<p>If a object's value property must be represented as a XML node content, then it requires to override <code>serialize_use_xml_node_value()</code> and set value at <code>serialized_xml_node_value</code>, as described at <link type="topic" xref="gxml-serializable#gxml-serializable-node-contents">Node content</link>.</p>
</page>
......@@ -14,12 +14,12 @@
</info>
<title>Serializable Interface</title>
<p>Implementors of this interface, could define or override the way you want to represent your class in a XML file.</p>
<p>Implementers of this interface, could define or override the way you want to represent your class in a XML file.</p>
<section id="gxml-serializable-properties">
<title>Serializable properties</title>
<p>You can get control on class's properties to be serialized to XML. Allowing to provide ones, storing runtime information and ones to be stored in XML. By default, all object's properties are serialized. In order to skip properties from serialization process you must add its canonical name as key and its canonical name as value, to <code>ignored_serializable_properties</code> store.</p>
<p>Implementator must use <code>ignored_serializable_properties</code> property to check if a property should be serialized. This allows to dynamically remove, on convenience, properties on serialization. You can use <code>list_serializable_properties()</code> method as a convenient function, using its default implementation, or even override it at your convenience to automate dynamic serializable properties at run time; just make sure to skip the unwanted properties.</p>
<p>There are more methods to avoid properties serialization, like to override <code>init_properties</code> default implementation. It stores all <code>Serializale</code>'s properties to be ignored by default; you must ensure to initialize correctly, by calling <code>default_init_properties()</code> method before any other code in your overrided method.</p>
<p>Implementer must use <code>ignored_serializable_properties</code> property to check if a property should be serialized. This allows to dynamically remove, on convenience, properties on serialization. You can use <code>list_serializable_properties()</code> method as a convenient function, using its default implementation, or even override it at your convenience to automate dynamic serializable properties at run time; just make sure to skip the unwanted properties.</p>
<p>There are more methods to avoid properties serialization, like to override <code>init_properties</code> default implementation. It stores all <code>Serializale</code>'s properties to be ignored by default; you must ensure to initialize correctly, by calling <code>default_init_properties()</code> method before any other code in your overridden method.</p>
<section id="gxml-serializable-unknown_properties">
<title>Unknown XML elements</title>
<p>XML allows great flexibility, providing different ways to represent the same information. This is a problem when you try to deserialize them.</p>
......@@ -27,23 +27,23 @@
</section>
<section id="gxml-serializable-property-name">
<title>Property's name</title>
<p>When serialize a class property, by default it uses its name given on class declaration, but is less common to see XML node mproperties with name like <code>your_property</code>, but more common is to use <code>YourProperty</code>. In order to use this kind of names, your implementation should use properties' nick name and override <code>property_use_nick()</code> method to return true. This should instruct your code to use this method to use property's nick name. This is the default in GXml default implementations.</p>
<p>When serialize a class property, by default it uses its name given on class declaration, but is less common to see XML node properties with name like <code>your_property</code>, but more common is to use <code>YourProperty</code>. In order to use this kind of names, your implementation should use properties' nick name and override <code>property_use_nick()</code> method to return true. This should instruct your code to use this method to use property's nick name. This is the default in GXml default implementations.</p>
<p>In order to set node's name, you should override <code>node_name()</code> method.</p>
</section>
</section>
<section id="gxml-serializable-node-contents">
<title>XML node's content</title>
<p>By default GXml's implementations doesn't deseriaze/serialize XML node contents. In order to enable it, you must override <code>serialize_use_xml_node_value()</code> method to return true and store XML node's content to <code>serialized_xml_node_value</code> property.</p>
<p>Implementors could set up methods to provide a clean easy to use API to set nodes contents. In most cases, users would like to set a value through a getter or setter or through a property in the class. If you use a property, you should add it to <code>ignored_serializable_properties</code> in order to see its value in a XML node property.</p>
<p>By default GXml's implementations doesn't deserialize/serialize XML node contents. In order to enable it, you must override <code>serialize_use_xml_node_value()</code> method to return true and store XML node's content to <code>serialized_xml_node_value</code> property.</p>
<p>Implementers could set up methods to provide a clean easy to use API to set nodes contents. In most cases, users would like to set a value through a getter or setter or through a property in the class. If you use a property, you should add it to <code>ignored_serializable_properties</code> in order to see its value in a XML node property.</p>
</section>
<section id="gxml-serializable-node-name">
<title>XML node name</title>
<p>On serialization XML node's name could be set to use a prety one. By default, node's name is the class name; becareful because name could be <code>GXmlSerializable</code>, while may you prefer to use just 'Serializable'.</p>
<p>On serialization XML node's name could be set to use a prety one. By default, node's name is the class name; be careful because name could be <code>GXmlSerializable</code>, while may you prefer to use just 'Serializable'.</p>
<p>In order to set node's name, you should override <code>node_name()</code> method.</p>
</section>
<section id="gxml-serializable-serialize">
<title>Serialize</title>
<p><code>Serializable</code> interface allows you to implement your own <code>serialize()</code> method. Your implementation should take a <code>GXml.Node</code> and serialize over it. Given <code>GXml.Node</code>, could be an <code>GXml.Element</code> or a <code>GXml.Document</code>, your implementaiton should take care about this and return XML nodes representing your class object.</p>
<p><code>Serializable</code> interface allows you to implement your own <code>serialize()</code> method. Your implementation should take a <code>GXml.Node</code> and serialize over it. Given <code>GXml.Node</code>, could be an <code>GXml.Element</code> or a <code>GXml.Document</code>, your implementation should take care about this and return XML nodes representing your class object.</p>
</section>
<section id="gxml-serializable-serialize-property">
<title>Serialize a property</title>
......@@ -51,7 +51,7 @@
</section>
<section id="gxml-serializable-deserialize">
<title>Deserialize</title>
<p><code>Serializable</code> interface allows you to implement your own <code>deserialize()</code> method. Your implementation should take a <code>GXml.Node</code> and deserialize from it. Given <code>GXml.Node</code>, could be an <code>GXml.Element</code> or a <code>GXml.Document</code>, your implementaiton should take care about this and return XML nodes representing your class object.</p>
<p><code>Serializable</code> interface allows you to implement your own <code>deserialize()</code> method. Your implementation should take a <code>GXml.Node</code> and deserialize from it. Given <code>GXml.Node</code>, could be an <code>GXml.Element</code> or a <code>GXml.Document</code>, your implementation should take care about this and return XML nodes representing your class object.</p>
<p>Your implementation could take <code>GXml.Element</code>'s name to detect the property to set up or detect the root element in a <code>GXml.Document</code> to use. Then you can iterate over all node's properties and set up your object properties; you can use <code>gvalue_to_string()</code> to transform most common value types from string to the required value's type.</p>
<section id="gxml-serializable-deserialize-supportedtypes">
<title>Supported types</title>
......@@ -63,7 +63,7 @@
<item><p>enumerations</p></item>
</list>
<section id="gxml-serializable-deserialize-enums">
<p>Enumerations have a set of utility methods to better represent on serialisation/deserialization.</p>
<p>Enumerations have a set of utility methods to better represent on serialization/deserialization.</p>
<p>Enumerations could be converted to string using its definition on <code>GLib.EnumClass</code>, by taking its nick name directly or converting to its camel case representation.</p>
<p>Any enumeration value type in a <code>GLib.Object</code>'s property could be deserialized from its definition given on <code>GLib.EnumClass</code> (name and nick) or from its camel case representation.</p>
</section>
......
......@@ -6,7 +6,7 @@
<body>
<h1>About GXml</h1>
<p>GXml is a library providing DOM4 and XSD API based on GObject.</p>
<p>GXml provides wrapping aroung libxml2 and a pure GObjec implementation,
<p>GXml provides wrapping around libxml2 and a pure GObjec implementation,
along with CSS Selectors, XPath expressions ans serialization of GObject
classes to XML and back.</p>
<p>For more recent details, checkout
......
......@@ -28,7 +28,7 @@ var first_book = book_list.get_element (0);
var ath = first_book.get_attribute ("author");
var att = first_book.get_attribute ("title");
print ("Autor: "+ath+" Title: "+att);
print ("Author: "+ath+" Title: "+att);
var attrs = first_book.get_attributes ();
print ("Attrs type:"+attrs.constructor);
......
......@@ -24,7 +24,7 @@
using Gee;
/**
* A class impementing {@link Collection} to store references to
* A class implementing {@link Collection} to store references to
* child {@link DomElement} of {@link Collection.element}, using an index.
*
* {{{
......
......@@ -24,7 +24,7 @@ using GXml;
using Gee;
/**
* DOM4 implemenation of {@link DomAttr}.
* DOM4 implementation of {@link DomAttr}.
*/
public class GXml.Attr : GXml.Node, GXml.DomAttr {
protected string _namespace_uri;
......
......@@ -23,7 +23,7 @@
using Gee;
/**
* Base class for collections implemeting {@link Collection}, priving basic
* Base class for collections implementing {@link Collection}, providing basic
* infrastructure.
*
* Collections properties should be initialized with current container element
......@@ -32,7 +32,7 @@ using Gee;
*/
public abstract class GXml.BaseCollection : GLib.Object, Traversable<DomElement>, Iterable<DomElement>, Collection {
/**
* A collection of node's index refered. Don't modify it manually.
* A collection of node's index referred. Don't modify it manually.
*/
protected GLib.Queue<int> _nodes_index = new GLib.Queue<int> ();
/**
......@@ -45,13 +45,13 @@ public abstract class GXml.BaseCollection : GLib.Object, Traversable<DomElement>
* contained in this collection.
*
* Used when reading to add elements to collection. You can set it at construction time,
* by, for example, instantaiting a object of the type {@link Collection.items_type}
* by, for example, instantiating a object of the type {@link Collection.items_type}
* then use {@link GXml.Element.local_name}'s value.
*/
protected string _items_name = "";
/**
* Objects' type to be referenced by this collection and to deserialize objects.
* Derived classes, can initilize this value at constructor or as construct property.
* Derived classes, can initialize this value at constructor or as construct property.
*
* Used when reading and at initialization time, to know {@link GXml.Element.local_name}
* at runtime.
......@@ -95,11 +95,11 @@ public abstract class GXml.BaseCollection : GLib.Object, Traversable<DomElement>
}
/**
* Initialize an {@link Collection} to use an element as children's parent.
* Searchs for all nodes, calling {@link Collection.search}
* Searches for all nodes, calling {@link Collection.search}
* with {@link Collection.items_type}, using its
* {@link DomElement.local_name} to find it.
*
* Implemenation classes, should initialize collection to hold a {@link GXml.Element}
* Implementation classes, should initialize collection to hold a {@link GXml.Element}
* derived type using {@link Collection.initialize}.
*/
public void initialize_element (GXml.Element e) throws GLib.Error {
......@@ -169,7 +169,7 @@ public abstract class GXml.BaseCollection : GLib.Object, Traversable<DomElement>
var i = iterator ();
return i.foreach (f);
}
// Itarable Interface
// Iterable Interface
public Iterator<DomElement> iterator () { return new CollectionIterator (this); }
// For Iterable interface implementation
private class CollectionIterator : GLib.Object, Traversable<DomElement>, Iterator<DomElement> {
......
......@@ -170,7 +170,7 @@ public interface GXml.Collection : GLib.Object
*/
public abstract bool validate_append (int index, DomElement element) throws GLib.Error;
/**
* Clear this collection in prepareation for a search
* Clear this collection in preparation for a search
*/
public abstract void clear () throws GLib.Error;
}
......@@ -181,7 +181,7 @@ public interface GXml.Collection : GLib.Object
public interface GXml.List : GLib.Object, Collection, Traversable<DomElement>, Iterable<DomElement> {}
/**
* Inteface to be implemented by {@link GXml.Collection} derived classes
* Interface to be implemented by {@link GXml.Collection} derived classes
* in order to provide a string to be used in {@link GXml.HashMap} as key.
*
* If {@link GXml.HashMap} has set its {@link GXml.HashMap.attribute_key}
......@@ -217,7 +217,7 @@ public interface GXml.Map : GLib.Object, GXml.Collection, Traversable<DomElement
/**
* Inteface to be implemented by {@link GXml.Collection} derived classes
* Interface to be implemented by {@link GXml.Collection} derived classes
* in order to provide a strings to be used in {@link GXml.HashPairedMap} as keys.
*/
public interface GXml.MappeableElementPairKey : GLib.Object, DomElement {
......@@ -249,7 +249,7 @@ public interface GXml.PairedMap : GLib.Object, GXml.Collection, Traversable<DomE
*/
public abstract DomElement? item (string primary_key, string secondary_key);
/**
* Returns true if @key is used in collection as primery key.
* Returns true if @key is used in collection as primary key.
*/
public abstract bool has_primary_key (string key);
/**
......@@ -265,7 +265,7 @@ public interface GXml.PairedMap : GLib.Object, GXml.Collection, Traversable<DomE
/**
* Inteface to beimplemented by {@link GXml.Collection} derived classes
* Interface to be implemented by {@link GXml.Collection} derived classes
* in order to provide a string to be used in {@link GXml.HashThreeMap} as key.
*
* If {@link GXml.HashMap} has set its {@link GXml.HashMap.attribute_key}
......@@ -277,7 +277,7 @@ public interface GXml.MappeableElementThreeKey : GLib.Object, DomElement {
*/
public abstract string get_map_pkey ();
/**
* Returns secundary key of collection.
* Returns secondary key of collection.
*/
public abstract string get_map_skey ();
/**
......@@ -314,7 +314,7 @@ public interface GXml.ThreeMap : GLib.Object, GXml.Collection, Traversable<DomEl
*/
public abstract DomElement? item (string primary_key, string secondary_key, string third_key);
/**
* Returns true if @key is used in collection as primery key.
* Returns true if @key is used in collection as primary key.
*/
public abstract bool has_primary_key (string key);
/**
......
......@@ -351,7 +351,7 @@ public class GXml.CssSelectorParser : GLib.Object {
if (str.read() != ']')
throw new GXml.CssSelectorError.ATTRIBUTE (_("Cannot find end of attribute selector"));
// TODO : CSS Selectors level 4 : case sensivity.
// TODO : CSS Selectors level 4 : case sensitivity.
return selector;
}
......
......@@ -101,7 +101,7 @@ public interface GXml.DomNodeIterator : GLib.Object {
public abstract DomNode reference_node { get; }
public abstract bool pointer_before_reference_node { get; }
/**
* This is a value of {@link DomNodeFilter} contant SHOW.
* This is a value of {@link DomNodeFilter} constant SHOW.
*/
public abstract int what_to_show { get; }
......
......@@ -66,7 +66,7 @@ public interface GXml.DomDocument : GLib.Object,
* Consider to connect to {@link DomNodeIterator.accept_node} in order to
* filter the nodes you iterate on.
*
* See at {@link DomNodeFilter} fot the constant value of @what_to_show
* See at {@link DomNodeFilter} for the constant value of @what_to_show
*/
public abstract DomNodeIterator create_node_iterator (DomNode root, int whatToShow = (int) 0xFFFFFFFF);
......@@ -76,7 +76,7 @@ public interface GXml.DomDocument : GLib.Object,
* Consider to connect to {@link DomTreeWalker.accept_node} in order to
* filter the nodes you iterate on.
*
* See at {@link DomNodeFilter} fot the constant value of @what_to_show
* See at {@link DomNodeFilter} for the constant value of @what_to_show
*/
public abstract DomTreeWalker create_tree_walker (DomNode root, int what_to_show = (int) 0xFFFFFFFF);
......@@ -222,7 +222,7 @@ public errordomain GXml.DomDocumentError {
public interface GXml.DomXMLDocument : GLib.Object, GXml.DomDocument {}
/**
* No implemented jet. This can lead to API changes in future versions.
* Not implemented yet. This can lead to API changes in future versions.
*/
public interface GXml.DomImplementation : GLib.Object {
public abstract DomDocumentType create_document_type (string qualified_name, string public_id, string system_id) throws GLib.Error;
......@@ -235,7 +235,7 @@ public interface GXml.DomImplementation : GLib.Object {
}
/**
* No implemented jet. This can lead to API changes in future versions.
* Not implemented yet. This can lead to API changes in future versions.
*/
public interface GXml.DomDocumentFragment : GLib.Object,
GXml.DomNode,
......@@ -244,7 +244,7 @@ public interface GXml.DomDocumentFragment : GLib.Object,
{}
/**
* No implemented jet. This can lead to API changes in future versions.
* Not implemented yet. This can lead to API changes in future versions.
*/
public interface GXml.DomDocumentType : GLib.Object, GXml.DomNode, GXml.DomChildNode {
public abstract string name { get; }
......
......@@ -22,7 +22,7 @@
using Gee;
/**
* Implementators should use constructor with one argument {@link GXml.DomMutationCallback}
* Implementers should use constructor with one argument {@link GXml.DomMutationCallback}
* to use internally.
*/
public interface GXml.DomMutationObserver : GLib.Object {
......
......@@ -29,12 +29,12 @@ using Gee;
* This object avoids pre and post XML parsing, by using a one step parsing
* to translate text XML tree to an GObject based tree.
*
* A GXml Object Model (GOM) implementation of {@link GXml.Element}.It can be used
* transparently as {@link DomElement} in a XML tree.
* A GXml Object Model (GOM) implementation of {@link GXml.Element}. It can be
* used transparently as {@link DomElement} in a XML tree.
*
* It also allows delayed parsing, so you can read large documents by parsing
* just a XML element node and its attributes but not its childs; save its childs
* as a text, for a post-on-step-parsing.
* just a XML element node and its attributes but not its children; save its
* children as a text, for a post-on-step-parsing.
*/
public class GXml.Element : GXml.Node,
DomChildNode,
......@@ -58,7 +58,7 @@ public class GXml.Element : GXml.Node,
parser.read_file (f);
}
/**
* Parses asinchronically an XML file, deserializing it over {@link GXml.Element}.
* Parses asynchronically an XML file, deserializing it over {@link GXml.Element}.
*/
public async void read_from_file_async (GLib.File f,
GLib.Cancellable? cancellable = null) throws GLib.Error {
......@@ -109,7 +109,7 @@ public class GXml.Element : GXml.Node,
return parser.write_string ();
}
/**
* Serialize asinchronically {@link GXml.Element} to a string.
* Serialize asynchronically {@link GXml.Element} to a string.
*/
public async string write_string_async (Cancellable? cancellable = null) throws GLib.Error {
var parser = new XParser (this);
......@@ -349,7 +349,7 @@ public class GXml.Element : GXml.Node,
/**
* Convenient function to initialize, at construction time, a {@link GXml.Element}
* using given local name. If {@link GXml.Element.initialize_with_namespace}
* has been called in any base class, this method just change elment node's name
* has been called in any base class, this method just change element node's name
* and keeps previous namespace and prefix.
*
* No {@link DomDocument} is set by default, if this is a top level element in a
......@@ -399,7 +399,7 @@ public class GXml.Element : GXml.Node,
public class Attributes : Gee.HashMap<string,DomNode>, DomNamedNodeMap {
private TreeMap<long,string> order = new TreeMap<long,string> ();
/**
* Holds {@link GXml.Element} refrence to attributes' parent element.
* Holds {@link GXml.Element} reference to attributes' parent element.
* Derived classes should not modify, but set at construction time.
*/
protected GXml.Element _element;
......@@ -658,7 +658,7 @@ public class GXml.Element : GXml.Node,
}
if (p == "xmlns" && namespace_uri != "http://www.w3.org/2000/xmlns/"
&& namespace_uri != "http://www.w3.org/2000/xmlns") {
throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. 4If attribute's prefix is xmlns, namespace URI should be http://www.w3.org/2000/xmlns"));
throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If attribute's prefix is xmlns, namespace URI should be http://www.w3.org/2000/xmlns"));
}
if (p == "" && n == "xmlns"
&& (namespace_uri != "http://www.w3.org/2000/xmlns/"
......@@ -704,7 +704,7 @@ public class GXml.Element : GXml.Node,
public DomHTMLCollection get_elements_by_tag_name (string local_name) {
var l = new HTMLCollection ();
//FIXME: quircks mode not considered
//FIXME: quirks mode not considered
foreach (GXml.DomNode n in child_nodes) {
if (!(n is DomElement)) continue;
if (n.node_name == local_name)
......@@ -715,7 +715,7 @@ public class GXml.Element : GXml.Node,
}
public DomHTMLCollection get_elements_by_tag_name_ns (string? namespace, string local_name) {
var l = new HTMLCollection ();
//FIXME: quircks mode not considered
//FIXME: quirks mode not considered
foreach (GXml.DomNode n in child_nodes) {
if (!(n is DomElement)) continue;
if (n.node_name == local_name
......
......@@ -24,7 +24,7 @@
using Gee;
/**
* A class impementing {@link Collection} to store references to
* A class implementing {@link Collection} to store references to
* child {@link DomElement} of {@link Collection.element}, using an attribute in
* items as key or {@link MappeableElement.get_map_key} method if implemented
* by items to be added. If key is not defined in node, it is not added; but
......@@ -53,7 +53,7 @@ using Gee;
*/
public class GXml.HashMap : GXml.BaseCollection, GXml.Map {
/**
* A hashtable with all keys as string to node's index refered. Don't modify it manually.
* A hashtable with all keys as string to node's index referred. Don't modify it manually.
*/
protected Gee.HashMap<string,int> _hashtable = new Gee.HashMap<string,int> ();
/**
......
......@@ -24,7 +24,7 @@
using Gee;
/**
* A class impementing {@link Collection} to store references to
* A class implementing {@link Collection} to store references to
* child {@link DomElement} of {@link Collection.element}, using two attributes in
* items as primary and secondary keys or {@link MappeableElementPairKey.get_map_primary_key}
* and {@link MappeableElementPairKey.get_map_secondary_key} methods if
......@@ -61,11 +61,11 @@ using Gee;
*/
public class GXml.HashPairedMap : GXml.BaseCollection, GXml.PairedMap {
/**
* A hashtable with all keys as string to node's index refered. Don't modify it manually.
* A hashtable with all keys as string to node's index referred. Don't modify it manually.
*/
protected Gee.HashMap<string,Gee.HashMap<string,int>> _hashtable = new Gee.HashMap<string,Gee.HashMap<string,int>> ();
/**
* Element's attribute name used to refer of container's element as primery 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.
*/
......@@ -131,7 +131,7 @@ public class GXml.HashPairedMap : GXml.BaseCollection, GXml.PairedMap {
return _element.child_nodes.get (i) as DomElement;
}
/**
* Returns true if @key is used in collection as primery key.
* Returns true if @key is used in collection as primary key.
*/
public bool has_primary_key (string key) {
if (_hashtable.has_key (key)) return true;
......
......@@ -24,7 +24,7 @@
using Gee;
/**
* A class impementing {@link Collection} to store references to
* A class implementing {@link Collection} to store references to
* child {@link DomElement} of {@link Collection.element}, using three attributes in
* items as primary, secondary tertiary keys or {@link MappeableElementThreeKey.get_map_pkey},
* {@link MappeableElementThreeKey.get_map_skey}
......@@ -66,11 +66,11 @@ using Gee;
*/
public class GXml.HashThreeMap : GXml.BaseCollection, ThreeMap {
/**
* A hashtable with all keys as string to node's index refered. Don't modify it manually.
* A hashtable with all keys as string to node's index referred. Don't modify it manually.
*/
protected Gee.HashMap<string,Gee.HashMap<string,Gee.HashMap<string,int>>> _hashtable = new Gee.HashMap<string,Gee.HashMap<string,Gee.HashMap<string,int>>> ();
/**
* Element's attribute name used to refer of container's element as primery 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.
*/
......@@ -156,7 +156,7 @@ public class GXml.HashThreeMap : GXml.BaseCollection, ThreeMap {
return _element.child_nodes.get (i) as DomElement;
}
/**
* Returns true if @key is used in collection as primery key.
* Returns true if @key is used in collection as primary key.
*/
public bool has_primary_key (string key) {
if (_hashtable.has_key (key)) return true;
......
......@@ -63,7 +63,7 @@ public interface GXml.IXsdTypeRestriction : GLib.Object, IXsdTypeDef {
public abstract string base { get; set; }
public abstract string id { get; set; }
public abstract IXsdSimpleType simple_type { get; set; }
// TODO: Add all other definitons: like MinExclusive and others
// TODO: Add all other definitions: like MinExclusive and others
public abstract IXsdListTypeRestrictionEnumerations enumerations { get; set; }
public abstract IXsdListTypeRestrictionWhiteSpaces white_spaces { get; set; }
}
......
......@@ -363,7 +363,7 @@ public interface GXml.Object : GLib.Object,
* If property is a {@link Collection} it is initialize to use
* this as its {@link Collection.element}.
*
* Instance is set ot object's property.
* Instance is set to object's property.
*
* Property should be a {@link GXml.Element} or {@link Collection}
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment