1 19 20 package org.netbeans.tax.dom; 21 22 import java.util.Iterator ; 23 import org.w3c.dom.*; 24 import org.netbeans.tax.*; 25 import org.netbeans.tax.TreeObjectList; 26 27 31 class DocumentTypeImpl extends NodeImpl implements DocumentType { 32 33 private final TreeDocumentType peer; 34 35 36 public DocumentTypeImpl(TreeDocumentType peer) { 37 this.peer = peer; 38 } 39 40 public String getName() { 41 return peer.getElementName(); 42 } 43 44 public NamedNodeMap getEntities() { 45 return null; 46 } 47 48 public NamedNodeMap getNotations() { 49 return null; 50 } 51 52 public String getPublicId() { 53 return peer.getPublicId(); 54 } 55 56 public String getSystemId() { 57 return peer.getSystemId(); 58 } 59 60 public String getInternalSubset() { 61 return null; 62 } 63 64 67 public String getNodeName() { 68 return peer.getElementName(); 69 } 70 71 74 public short getNodeType() { 75 return Node.DOCUMENT_TYPE_NODE; 76 } 77 78 88 public String getNodeValue() throws DOMException { 89 return null; 90 } 91 92 100 public Node getParentNode() { 101 return Wrapper.wrap(peer.getParentNode()); 102 } 103 104 108 public Node getFirstChild() { 109 return null; 110 } 111 112 116 public Node getLastChild() { 117 return null; 118 } 119 120 125 public boolean hasChildNodes() { 126 return false; 127 } 128 129 134 public NodeList getChildNodes() { 135 return Wrapper.wrap(peer.getChildNodes()); 136 } 137 138 } 139 | Popular Tags |