Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 17 package org.apache.xerces.dom; 18 19 import org.w3c.dom.Node ; 20 21 29 public abstract class ChildNode 30 extends NodeImpl { 31 32 36 37 static final long serialVersionUID = -6112455738802414002L; 38 39 transient StringBuffer fBufferStr = null; 40 41 45 46 protected ChildNode previousSibling; 47 48 49 protected ChildNode nextSibling; 50 51 55 61 protected ChildNode(CoreDocumentImpl ownerDocument) { 62 super(ownerDocument); 63 } 65 66 public ChildNode() {} 67 68 72 95 public Node cloneNode(boolean deep) { 96 97 ChildNode newnode = (ChildNode) super.cloneNode(deep); 98 99 newnode.previousSibling = null; 101 newnode.nextSibling = null; 102 newnode.isFirstChild(false); 103 104 return newnode; 105 106 } 108 111 public Node getParentNode() { 112 return isOwned() ? ownerNode : null; 115 } 116 117 120 final NodeImpl parentNode() { 121 return isOwned() ? ownerNode : null; 124 } 125 126 127 public Node getNextSibling() { 128 return nextSibling; 129 } 130 131 132 public Node getPreviousSibling() { 133 return isFirstChild() ? null : previousSibling; 136 } 137 138 141 final ChildNode previousSibling() { 142 return isFirstChild() ? null : previousSibling; 145 } 146 147 }
| Popular Tags
|