[gxml] Added GXml.DocumentType interface
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Added GXml.DocumentType interface
- Date: Tue, 12 May 2015 18:26:41 +0000 (UTC)
commit 759fac6212796e9df02535fa21f2fc5f62413e00
Author: Daniel Espinosa <esodan gmail com>
Date: Tue May 12 13:13:02 2015 -0500
Added GXml.DocumentType interface
gxml/DocumentType.vala | 28 ++++++++++++++++++++++++++++
gxml/Makefile.am | 1 +
gxml/libxml-DocumentType.vala | 2 +-
3 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/gxml/DocumentType.vala b/gxml/DocumentType.vala
new file mode 100644
index 0000000..fd0fa11
--- /dev/null
+++ b/gxml/DocumentType.vala
@@ -0,0 +1,28 @@
+/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 0; tab-width: 2 -*- */
+/* ObjectModel.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>
+ */
+
+using Gee;
+
+/**
+ * Interface to represent Document type definitions.
+ */
+public interface GXml.DocumentType : Object, GXml.Node {}
diff --git a/gxml/Makefile.am b/gxml/Makefile.am
index 8bd1021..79008b1 100644
--- a/gxml/Makefile.am
+++ b/gxml/Makefile.am
@@ -17,6 +17,7 @@ sources = \
Comment.vala\
CDATA.vala \
Document.vala \
+ DocumentType.vala \
Element.vala \
Namespace.vala \
Node.vala \
diff --git a/gxml/libxml-DocumentType.vala b/gxml/libxml-DocumentType.vala
index 909620b..4d9afc6 100644
--- a/gxml/libxml-DocumentType.vala
+++ b/gxml/libxml-DocumentType.vala
@@ -29,7 +29,7 @@ namespace GXml {
*
* For more, see: [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-412266927]]
*/
- public class xDocumentType : xNode {
+ public class xDocumentType : xNode, GXml.DocumentType {
private Xml.Doc* doc;
private Xml.Dtd *int_subset;
private Xml.Dtd *ext_subset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]