1 21 24 package org.lobobrowser.html.domimpl; 25 26 import org.w3c.dom.DOMException ; 27 import org.w3c.dom.DocumentType ; 28 import org.w3c.dom.NamedNodeMap ; 29 import org.w3c.dom.Node ; 30 31 public class DocumentTypeImpl extends NodeImpl implements DocumentType { 32 private final String qualifiedName; 33 private final String publicId; 34 private final String systemId; 35 36 public DocumentTypeImpl(String qname, String publicId, String systemId) { 37 super(); 38 this.qualifiedName = qname; 39 this.publicId = publicId; 40 this.systemId = systemId; 41 } 42 43 public String getLocalName() { 44 return null; 45 } 46 47 public String getNodeName() { 48 return this.getName(); 49 } 50 51 public String getNodeValue() throws DOMException { 52 return null; 53 } 54 55 public void setNodeValue(String nodeValue) throws DOMException { 56 } 58 59 public short getNodeType() { 60 return org.w3c.dom.Node.DOCUMENT_TYPE_NODE; 61 } 62 63 public String getName() { 64 return this.qualifiedName; 65 } 66 67 public NamedNodeMap getEntities() { 68 return null; 70 } 71 72 public NamedNodeMap getNotations() { 73 return null; 75 } 76 77 public String getPublicId() { 78 return this.publicId; 79 } 80 81 public String getSystemId() { 82 return this.systemId; 83 } 84 85 public String getInternalSubset() { 86 return null; 88 } 89 90 protected Node createSimilarNode() { 91 return new DocumentTypeImpl(this.qualifiedName, this.publicId, this.systemId); 92 } 93 } 94 | Popular Tags |