From 759fac6212796e9df02535fa21f2fc5f62413e00 Mon Sep 17 00:00:00 2001 From: Daniel Espinosa Date: Tue, 12 May 2015 13:13:02 -0500 Subject: [PATCH] Added GXml.DocumentType interface --- gxml/DocumentType.vala | 28 ++++++++++++++++++++++++++++ gxml/Makefile.am | 1 + gxml/libxml-DocumentType.vala | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 gxml/DocumentType.vala diff --git a/gxml/DocumentType.vala b/gxml/DocumentType.vala new file mode 100644 index 00000000..fd0fa112 --- /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 + * + * 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 . + * + * Authors: + * Daniel Espinosa + */ + +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 8bd10213..79008b19 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 909620b6..4d9afc66 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; -- GitLab