1 12 13 package org.w3c.dom.traversal; 14 15 import org.w3c.dom.Node ; 16 17 35 public interface NodeFilter { 36 42 public static final short FILTER_ACCEPT = 1; 43 50 public static final short FILTER_REJECT = 2; 51 58 public static final short FILTER_SKIP = 3; 59 60 64 public static final int SHOW_ALL = 0xFFFFFFFF; 65 68 public static final int SHOW_ELEMENT = 0x00000001; 69 77 public static final int SHOW_ATTRIBUTE = 0x00000002; 78 81 public static final int SHOW_TEXT = 0x00000004; 82 85 public static final int SHOW_CDATA_SECTION = 0x00000008; 86 89 public static final int SHOW_ENTITY_REFERENCE = 0x00000010; 90 99 public static final int SHOW_ENTITY = 0x00000020; 100 103 public static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040; 104 107 public static final int SHOW_COMMENT = 0x00000080; 108 111 public static final int SHOW_DOCUMENT = 0x00000100; 112 115 public static final int SHOW_DOCUMENT_TYPE = 0x00000200; 116 119 public static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400; 120 129 public static final int SHOW_NOTATION = 0x00000800; 130 131 142 public short acceptNode(Node n); 143 144 } 145 | Popular Tags |