]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/Lib/xml/dom/NodeFilter.py
AppPkg/Applications/Python/Python-2.7.10: Initial Checkin part 4/5.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Lib / xml / dom / NodeFilter.py
diff --git a/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/dom/NodeFilter.py b/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/dom/NodeFilter.py
new file mode 100644 (file)
index 0000000..07886e0
--- /dev/null
@@ -0,0 +1,27 @@
+# This is the Python mapping for interface NodeFilter from\r
+# DOM2-Traversal-Range. It contains only constants.\r
+\r
+class NodeFilter:\r
+    """\r
+    This is the DOM2 NodeFilter interface. It contains only constants.\r
+    """\r
+    FILTER_ACCEPT = 1\r
+    FILTER_REJECT = 2\r
+    FILTER_SKIP   = 3\r
+\r
+    SHOW_ALL                    = 0xFFFFFFFFL\r
+    SHOW_ELEMENT                = 0x00000001\r
+    SHOW_ATTRIBUTE              = 0x00000002\r
+    SHOW_TEXT                   = 0x00000004\r
+    SHOW_CDATA_SECTION          = 0x00000008\r
+    SHOW_ENTITY_REFERENCE       = 0x00000010\r
+    SHOW_ENTITY                 = 0x00000020\r
+    SHOW_PROCESSING_INSTRUCTION = 0x00000040\r
+    SHOW_COMMENT                = 0x00000080\r
+    SHOW_DOCUMENT               = 0x00000100\r
+    SHOW_DOCUMENT_TYPE          = 0x00000200\r
+    SHOW_DOCUMENT_FRAGMENT      = 0x00000400\r
+    SHOW_NOTATION               = 0x00000800\r
+\r
+    def acceptNode(self, node):\r
+        raise NotImplementedError\r