예제 #1
0
파일: Node.java 프로젝트: saeg/experiments
 /**
  * Gets the Document associated with this Node.
  *
  * @return the Document associated with this Node, or null if there is no such Document.
  */
 public Document ownerDocument() {
   if (this instanceof Document) return (Document) this;
   else if (parentNode == null) return null;
   else return parentNode.ownerDocument();
 }