1 | n/a | # This is the Python mapping for interface NodeFilter from |
---|
2 | n/a | # DOM2-Traversal-Range. It contains only constants. |
---|
3 | n/a | |
---|
4 | n/a | class NodeFilter: |
---|
5 | n/a | """ |
---|
6 | n/a | This is the DOM2 NodeFilter interface. It contains only constants. |
---|
7 | n/a | """ |
---|
8 | n/a | FILTER_ACCEPT = 1 |
---|
9 | n/a | FILTER_REJECT = 2 |
---|
10 | n/a | FILTER_SKIP = 3 |
---|
11 | n/a | |
---|
12 | n/a | SHOW_ALL = 0xFFFFFFFF |
---|
13 | n/a | SHOW_ELEMENT = 0x00000001 |
---|
14 | n/a | SHOW_ATTRIBUTE = 0x00000002 |
---|
15 | n/a | SHOW_TEXT = 0x00000004 |
---|
16 | n/a | SHOW_CDATA_SECTION = 0x00000008 |
---|
17 | n/a | SHOW_ENTITY_REFERENCE = 0x00000010 |
---|
18 | n/a | SHOW_ENTITY = 0x00000020 |
---|
19 | n/a | SHOW_PROCESSING_INSTRUCTION = 0x00000040 |
---|
20 | n/a | SHOW_COMMENT = 0x00000080 |
---|
21 | n/a | SHOW_DOCUMENT = 0x00000100 |
---|
22 | n/a | SHOW_DOCUMENT_TYPE = 0x00000200 |
---|
23 | n/a | SHOW_DOCUMENT_FRAGMENT = 0x00000400 |
---|
24 | n/a | SHOW_NOTATION = 0x00000800 |
---|
25 | n/a | |
---|
26 | n/a | def acceptNode(self, node): |
---|
27 | n/a | raise NotImplementedError |
---|