1 module webkit2webextension.DOMDocumentType;
2 
3 private import glib.Str;
4 private import gobject.ObjectG;
5 private import webkit2webextension.DOMNamedNodeMap;
6 private import webkit2webextension.DOMNode;
7 private import webkit2webextension.c.functions;
8 public  import webkit2webextension.c.types;
9 
10 
11 /** */
12 public class DOMDocumentType : DOMNode
13 {
14 	/** the main Gtk struct */
15 	protected WebKitDOMDocumentType* webKitDOMDocumentType;
16 
17 	/** Get the main Gtk struct */
18 	public WebKitDOMDocumentType* getDOMDocumentTypeStruct(bool transferOwnership = false)
19 	{
20 		if (transferOwnership)
21 			ownedRef = false;
22 		return webKitDOMDocumentType;
23 	}
24 
25 	/** the main Gtk struct as a void* */
26 	protected override void* getStruct()
27 	{
28 		return cast(void*)webKitDOMDocumentType;
29 	}
30 
31 	/**
32 	 * Sets our main struct and passes it to the parent class.
33 	 */
34 	public this (WebKitDOMDocumentType* webKitDOMDocumentType, bool ownedRef = false)
35 	{
36 		this.webKitDOMDocumentType = webKitDOMDocumentType;
37 		super(cast(WebKitDOMNode*)webKitDOMDocumentType, ownedRef);
38 	}
39 
40 
41 	/** */
42 	public static GType getType()
43 	{
44 		return webkit_dom_document_type_get_type();
45 	}
46 
47 	/**
48 	 *
49 	 *
50 	 * Deprecated: Use JavaScriptCore API instead
51 	 *
52 	 * Returns: A #WebKitDOMNamedNodeMap
53 	 */
54 	public DOMNamedNodeMap getEntities()
55 	{
56 		auto __p = webkit_dom_document_type_get_entities(webKitDOMDocumentType);
57 
58 		if(__p is null)
59 		{
60 			return null;
61 		}
62 
63 		return ObjectG.getDObject!(DOMNamedNodeMap)(cast(WebKitDOMNamedNodeMap*) __p, true);
64 	}
65 
66 	/**
67 	 *
68 	 *
69 	 * Deprecated: Use JavaScriptCore API instead
70 	 *
71 	 * Returns: A #gchar
72 	 */
73 	public string getInternalSubset()
74 	{
75 		auto retStr = webkit_dom_document_type_get_internal_subset(webKitDOMDocumentType);
76 
77 		scope(exit) Str.freeString(retStr);
78 		return Str.toString(retStr);
79 	}
80 
81 	/**
82 	 *
83 	 *
84 	 * Deprecated: Use JavaScriptCore API instead
85 	 *
86 	 * Returns: A #gchar
87 	 */
88 	public string getName()
89 	{
90 		auto retStr = webkit_dom_document_type_get_name(webKitDOMDocumentType);
91 
92 		scope(exit) Str.freeString(retStr);
93 		return Str.toString(retStr);
94 	}
95 
96 	/**
97 	 *
98 	 *
99 	 * Deprecated: Use JavaScriptCore API instead
100 	 *
101 	 * Returns: A #WebKitDOMNamedNodeMap
102 	 */
103 	public DOMNamedNodeMap getNotations()
104 	{
105 		auto __p = webkit_dom_document_type_get_notations(webKitDOMDocumentType);
106 
107 		if(__p is null)
108 		{
109 			return null;
110 		}
111 
112 		return ObjectG.getDObject!(DOMNamedNodeMap)(cast(WebKitDOMNamedNodeMap*) __p, true);
113 	}
114 
115 	/**
116 	 *
117 	 *
118 	 * Deprecated: Use JavaScriptCore API instead
119 	 *
120 	 * Returns: A #gchar
121 	 */
122 	public string getPublicId()
123 	{
124 		auto retStr = webkit_dom_document_type_get_public_id(webKitDOMDocumentType);
125 
126 		scope(exit) Str.freeString(retStr);
127 		return Str.toString(retStr);
128 	}
129 
130 	/**
131 	 *
132 	 *
133 	 * Deprecated: Use JavaScriptCore API instead
134 	 *
135 	 * Returns: A #gchar
136 	 */
137 	public string getSystemId()
138 	{
139 		auto retStr = webkit_dom_document_type_get_system_id(webKitDOMDocumentType);
140 
141 		scope(exit) Str.freeString(retStr);
142 		return Str.toString(retStr);
143 	}
144 }