1 12 13 package org.w3c.dom; 14 15 136 public interface Node { 137 141 public static final short ELEMENT_NODE = 1; 142 145 public static final short ATTRIBUTE_NODE = 2; 146 149 public static final short TEXT_NODE = 3; 150 153 public static final short CDATA_SECTION_NODE = 4; 154 157 public static final short ENTITY_REFERENCE_NODE = 5; 158 161 public static final short ENTITY_NODE = 6; 162 165 public static final short PROCESSING_INSTRUCTION_NODE = 7; 166 169 public static final short COMMENT_NODE = 8; 170 173 public static final short DOCUMENT_NODE = 9; 174 177 public static final short DOCUMENT_TYPE_NODE = 10; 178 181 public static final short DOCUMENT_FRAGMENT_NODE = 11; 182 185 public static final short NOTATION_NODE = 12; 186 187 190 public String getNodeName(); 191 192 201 public String getNodeValue() 202 throws DOMException ; 203 211 public void setNodeValue(String nodeValue) 212 throws DOMException ; 213 214 217 public short getNodeType(); 218 219 227 public Node getParentNode(); 228 229 234 public NodeList getChildNodes(); 235 236 240 public Node getFirstChild(); 241 242 246 public Node getLastChild(); 247 248 252 public Node getPreviousSibling(); 253 254 258 public Node getNextSibling(); 259 260 264 public NamedNodeMap getAttributes(); 265 266 274 public Document getOwnerDocument(); 275 276 309 public Node insertBefore(Node newChild, 310 Node refChild) 311 throws DOMException ; 312 313 346 public Node replaceChild(Node newChild, 347 Node oldChild) 348 throws DOMException ; 349 350 365 public Node removeChild(Node oldChild) 366 throws DOMException ; 367 368 393 public Node appendChild(Node newChild) 394 throws DOMException ; 395 396 401 public boolean hasChildNodes(); 402 403 437 public Node cloneNode(boolean deep); 438 439 461 public void normalize(); 462 463 472 public boolean isSupported(String feature, 473 String version); 474 475 491 public String getNamespaceURI(); 492 493 514 public String getPrefix(); 515 550 public void setPrefix(String prefix) 551 throws DOMException ; 552 553 561 public String getLocalName(); 562 563 569 public boolean hasAttributes(); 570 571 582 public String getBaseURI(); 583 584 589 public static final short DOCUMENT_POSITION_DISCONNECTED = 0x01; 590 593 public static final short DOCUMENT_POSITION_PRECEDING = 0x02; 594 597 public static final short DOCUMENT_POSITION_FOLLOWING = 0x04; 598 602 public static final short DOCUMENT_POSITION_CONTAINS = 0x08; 603 607 public static final short DOCUMENT_POSITION_CONTAINED_BY = 0x10; 608 612 public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; 613 614 628 public short compareDocumentPosition(Node other) 629 throws DOMException ; 630 631 678 public String getTextContent() 679 throws DOMException ; 680 725 public void setTextContent(String textContent) 726 throws DOMException ; 727 728 742 public boolean isSameNode(Node other); 743 744 756 public String lookupPrefix(String namespaceURI); 757 758 767 public boolean isDefaultNamespace(String namespaceURI); 768 769 780 public String lookupNamespaceURI(String prefix); 781 782 845 public boolean isEqualNode(Node arg); 846 847 869 public Object getFeature(String feature, 870 String version); 871 872 885 public Object setUserData(String key, 886 Object data, 887 UserDataHandler handler); 888 889 898 public Object getUserData(String key); 899 900 } 901 | Popular Tags |