logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

NodeFilter.py (936B)


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